client/tags: change 'edit time' to 'created on'

This commit is contained in:
rr- 2016-08-27 15:29:40 +02:00
parent ef0f74297f
commit 63e8683fb8
2 changed files with 7 additions and 7 deletions

View file

@ -30,11 +30,11 @@
<a href='/tags/query=sort:usages'>Usages</a>
<% } %>
</th>
<th class='edit-time'>
<% if (ctx.query == 'sort:last-edit-time') { %>
<a href='/tags/query=-sort:last-edit-time'>Edit time</a>
<th class='creation-time'>
<% if (ctx.query == 'sort:creation-time') { %>
<a href='/tags/query=-sort:creation-time'>Created on</a>
<% } else { %>
<a href='/tags/query=sort:last-edit-time'>Edit time</a>
<a href='/tags/query=sort:creation-time'>Created on</a>
<% } %>
</th>
</thead>
@ -73,8 +73,8 @@
<td class='usages'>
<%- tag.postCount %>
</td>
<td class='edit-time'>
<%= ctx.makeRelativeTime(tag.lastEditTime) %>
<td class='creation-time'>
<%= ctx.makeRelativeTime(tag.creationTime) %>
</td>
</tr>
<% } %>

View file

@ -10,7 +10,7 @@ const TagsPageView = require('../views/tags_page_view.js');
const EmptyView = require('../views/empty_view.js');
const fields = [
'names', 'suggestions', 'implications', 'lastEditTime', 'usages'];
'names', 'suggestions', 'implications', 'creationTime', 'usages'];
class TagListController {
constructor(ctx) {