# HG changeset patch # User Brian Neal # Date 1294607768 0 # Node ID 69498a43e6361e457494c72d9bd9d47569607f07 # Parent 0eed8161ca3994c9a19186958b2c14a449840453 Fixing #137; added a 'time-ago' timestamp to the template tags that display the latest web links and downloads. diff -r 0eed8161ca39 -r 69498a43e636 gpp/templates/downloads/latest_tag.html --- 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 %}

New Downloads

{% if downloads %}
    {% for dl in downloads %} -
  1. {{ dl.title }}
  2. +
  3. {{ dl.title }} - + {{ dl.date_added|elapsed }}
  4. {% endfor %}
{% else %} diff -r 0eed8161ca39 -r 69498a43e636 gpp/templates/weblinks/latest_tag.html --- 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 %}

New Links

{% if links %}
    {% for link in links %} -
  1. {{ link.title }}
  2. +
  3. {{ link.title }} - + {{ link.date_added|elapsed }}
  4. {% endfor %}
{% else %}