Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
27:03144b0d470d | 28:04377c5bf912 |
---|---|
1 {% load humanize %} | |
2 {% for bulletin in bulletins %} | |
3 <div class="bulletin" id="bulletin-{{ bulletin.id }}"> | |
4 <h3>{{ bulletin.title }}</h3> | |
5 <div class="bulletin-text"> | |
6 {{ bulletin.text|safe }} | |
7 </div> | |
8 <p class="bulletin-meta">Posted: {{ bulletin.start_date|naturalday|capfirst }} | |
9 {{ bulletin.start_date|date:"H:i" }}.</p> | |
10 </div> | |
11 {% endfor %} |