Mercurial > kallithea
changeset 4896:27d214c87144
pullrequest overview: show age rather than date
Since pullrequests are supposed to be short-lived, the age is more relevant
than the actual date (which is still shown in a tooltip).
author | Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> |
---|---|
date | Tue, 03 Mar 2015 22:33:46 +0100 |
parents | 780c1aab1357 |
children | e5bc21e78370 |
files | kallithea/templates/pullrequests/pullrequest_data.html |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/templates/pullrequests/pullrequest_data.html Tue Mar 03 21:48:53 2015 +0100 +++ b/kallithea/templates/pullrequests/pullrequest_data.html Tue Mar 03 22:33:46 2015 +0100 @@ -14,7 +14,7 @@ <th></th> <th class="left">${_('Title')}</th> <th class="left">${_('Author')}</th> - <th class="left">${_('Date')}</th> + <th class="left">${_('Age')}</th> <th class="left">${_('From')}</th> <th class="left">${_('To')}</th> </tr> @@ -54,7 +54,9 @@ ${pr.author.username_and_name} </td> <td> - ${h.fmt_date(pr.created_on)} + <span class="tooltip" title="${h.tooltip(h.fmt_date(pr.created_on))}"> + ${h.age(pr.created_on)} + </span> </td> <td> <% org_ref_name=pr.org_ref.rsplit(':', 2)[-2] %>