From e944e89c545ccb305f396832f10645065a409ba9 Mon Sep 17 00:00:00 2001 From: rr- Date: Wed, 8 Jun 2016 22:25:14 +0200 Subject: [PATCH] client/tags: add edit time column --- client/css/tags.styl | 12 ++++++++---- client/html/tags_page.tpl | 10 ++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/client/css/tags.styl b/client/css/tags.styl index 4cb10ccc..ef2b2e31 100644 --- a/client/css/tags.styl +++ b/client/css/tags.styl @@ -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 diff --git a/client/html/tags_page.tpl b/client/html/tags_page.tpl index eb420597..774ff615 100644 --- a/client/html/tags_page.tpl +++ b/client/html/tags_page.tpl @@ -30,6 +30,13 @@ Usages <% } %> + + <% if (ctx.query == 'sort:last-edit-time') { %> + Edit time + <% } else { %> + Edit time + <% } %> + <% _.each(ctx.results, tag => { %> @@ -66,6 +73,9 @@ <%= tag.usages %> + + <%= ctx.makeRelativeTime(tag.lastEditTime) %> + <% }) %>