client/tags: add edit time column
This commit is contained in:
parent
009e13c6d8
commit
e944e89c54
2 changed files with 18 additions and 4 deletions
|
@ -13,14 +13,18 @@
|
|||
th
|
||||
background: $top-nav-color
|
||||
.names
|
||||
width: 30%
|
||||
width: 28%
|
||||
.implications
|
||||
width: 30%
|
||||
width: 28%
|
||||
.suggestions
|
||||
width: 30%
|
||||
width: 28%
|
||||
.usages
|
||||
text-align: center
|
||||
width: 10%
|
||||
width: 8%
|
||||
.edit-time
|
||||
text-align: center
|
||||
width: 8%
|
||||
white-space: pre
|
||||
ul
|
||||
list-style-type: none
|
||||
margin: 0
|
||||
|
|
|
@ -30,6 +30,13 @@
|
|||
<a href='/tags/text=sort:usages'>Usages</a>
|
||||
<% } %>
|
||||
</th>
|
||||
<th class='edit-time'>
|
||||
<% if (ctx.query == 'sort:last-edit-time') { %>
|
||||
<a href='/tags/text=-sort:last-edit-time'>Edit time</a>
|
||||
<% } else { %>
|
||||
<a href='/tags/text=sort:last-edit-time'>Edit time</a>
|
||||
<% } %>
|
||||
</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% _.each(ctx.results, tag => { %>
|
||||
|
@ -66,6 +73,9 @@
|
|||
<td class='usages'>
|
||||
<%= tag.usages %>
|
||||
</td>
|
||||
<td class='edit-time'>
|
||||
<%= ctx.makeRelativeTime(tag.lastEditTime) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% }) %>
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in a new issue