diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-15 00:00:12 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-15 00:00:12 -0500 |
commit | 9fd7174029de87e58e25db6362f6e1c5349f0599 (patch) | |
tree | 216412e3dd45dd1ac2454c4dd645f7a96ec9412f | |
parent | dfab07f5abc5dcc99aa521027e29434224cb0a57 (diff) |
Use date template filter on datetime field display
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | templates/devel/index.html | 6 | ||||
-rw-r--r-- | templates/todolists/list.html | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/devel/index.html b/templates/devel/index.html index fb4ed4ab..f4a81102 100644 --- a/templates/devel/index.html +++ b/templates/devel/index.html @@ -27,8 +27,8 @@ <td>{{ pkg.repo.name }}</td> <td>{{ pkg.pkgver }}</td> <td>{{ pkg.arch.name }}</td> - <td>{{ pkg.flag_date }}</td> - <td>{{ pkg.last_update }}</td> + <td>{{ pkg.flag_date|date }}</td> + <td>{{ pkg.last_update|date }}</td> </tr> {% empty %} <tr class="empty"><td colspan="4"><em>No flagged packages to display</em></td></tr> @@ -80,7 +80,7 @@ <tr class="{% cycle 'odd' 'even' %}"> <td><a href="{{ todo.get_absolute_url }}" title="View todo list: {{ todo.name }}">{{ todo.name }}</a></td> - <td>{{ todo.date_added }}</td> + <td>{{ todo.date_added|date }}</td> <td class="wrap">{{ todo.description|safe }}</td> </tr> {% empty %} diff --git a/templates/todolists/list.html b/templates/todolists/list.html index 78acabfb..7d229271 100644 --- a/templates/todolists/list.html +++ b/templates/todolists/list.html @@ -30,7 +30,7 @@ <tr class="{% cycle 'odd' 'even' %}"> <td><a href="{{ list.get_absolute_url }}" title="View todo list: {{ list.name }}">{{ list.name }}</a></td> - <td>{{ list.date_added }}</td> + <td>{{ list.date_added|date }}</td> <td>{{ list.creator.get_full_name }}</td> <td class="wrap">{{ list.description|urlize }}</td> <td>{{ list.pkg_count }}</td> |