diff gpp/templates/bulletins/bulletins.html @ 28:04377c5bf912

Added bulletins template tag.
author Brian Neal <bgneal@gmail.com>
date Wed, 22 Apr 2009 00:34:42 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gpp/templates/bulletins/bulletins.html	Wed Apr 22 00:34:42 2009 +0000
@@ -0,0 +1,11 @@
+{% load humanize %}
+{% for bulletin in bulletins %}
+<div class="bulletin" id="bulletin-{{ bulletin.id }}">
+   <h3>{{ bulletin.title }}</h3>
+   <div class="bulletin-text">
+      {{ bulletin.text|safe }}
+   </div>
+   <p class="bulletin-meta">Posted: {{ bulletin.start_date|naturalday|capfirst }}
+   {{ bulletin.start_date|date:"H:i" }}.</p>
+</div>
+{% endfor %}