Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 574d52a

Browse files
committed
feat(news): update news view design
Show clock instead of text. --- src/views/news/index.html | 4 ++-- src/views/news/view.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
1 parent 40fc4f2 commit 574d52a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/views/news/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<img alt="${item.user.username}" src="http://lr.local/img/avatar/${item.user.avatar}">
1313
</a>
1414
<h4><a href="#/news/view/${item.id}">${item.title}</a></h4>
15-
<a href="#/profiles/view/${item.user_id}">${item.user.username}</a>
16-
<small class="text-muted">on ${item.created_at}</small>
15+
<strong><a href="#/profiles/view/${item.user_id}">${item.user.username}</a></strong>
16+
<small class="text-muted"><i class="fa fa-clock-o"></i> ${item.created_at}</small>
1717
</div>
1818
<div class="card-text">${item.text}</div>
1919
</div>

src/views/news/view.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<img alt="${news.user.username}" src="http://lr.local/img/avatar/${news.user.avatar}">
1717
</a>
1818
<h4><a href="#/news/view/${news.id}">${news.title}</a></h4>
19-
<a href="#/profiles/view/${news.user_id}">${news.user.username}</a>
20-
<small class="text-muted">on ${news.created_at}</small>
19+
<strong><a href="#/profiles/view/${news.user_id}">${news.user.username}</a></strong>
20+
<small class="text-muted"><i class="fa fa-clock-o"></i> ${news.created_at}</small>
2121
</div>
2222
<div class="card-text">${news.text}</div>
2323
</div>

0 commit comments

Comments
 (0)