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

View file

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