Mercurial > public > sg101
changeset 297:69498a43e636
Fixing #137; added a 'time-ago' timestamp to the template tags that display the latest web links and downloads.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 09 Jan 2011 21:16:08 +0000 |
parents | 0eed8161ca39 |
children | 4f032a6e21f8 |
files | gpp/templates/downloads/latest_tag.html gpp/templates/weblinks/latest_tag.html |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gpp/templates/downloads/latest_tag.html Sun Jan 09 20:53:00 2011 +0000 +++ b/gpp/templates/downloads/latest_tag.html Sun Jan 09 21:16:08 2011 +0000 @@ -1,8 +1,10 @@ +{% load core_tags %} <h2>New Downloads</h2> {% if downloads %} <ol> {% for dl in downloads %} - <li><a href="{{ dl.get_absolute_url }}">{{ dl.title }}</a></li> + <li><a href="{{ dl.get_absolute_url }}">{{ dl.title }}</a> - + <span class="small">{{ dl.date_added|elapsed }}</span></li> {% endfor %} </ol> {% else %}
--- a/gpp/templates/weblinks/latest_tag.html Sun Jan 09 20:53:00 2011 +0000 +++ b/gpp/templates/weblinks/latest_tag.html Sun Jan 09 21:16:08 2011 +0000 @@ -1,8 +1,10 @@ +{% load core_tags %} <h2>New Links</h2> {% if links %} <ol> {% for link in links %} - <li><a href="{{ link.get_absolute_url }}">{{ link.title }}</a></li> + <li><a href="{{ link.get_absolute_url }}">{{ link.title }}</a> - + <span class="small">{{ link.date_added|elapsed }}</span></li> {% endfor %} </ol> {% else %}