Mercurial > public > sg101
annotate gpp/templates/bulletins/bulletins.html @ 459:9d3bd7304050
Fixing #221. Also combined all permissions checks into a new module, permissions.py. This allows us to cache user, category, and forum groups information since it rarely changes.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 02 Jul 2011 23:35:45 +0000 |
parents | 04377c5bf912 |
children |
rev | line source |
---|---|
bgneal@28 | 1 {% load humanize %} |
bgneal@28 | 2 {% for bulletin in bulletins %} |
bgneal@28 | 3 <div class="bulletin" id="bulletin-{{ bulletin.id }}"> |
bgneal@28 | 4 <h3>{{ bulletin.title }}</h3> |
bgneal@28 | 5 <div class="bulletin-text"> |
bgneal@28 | 6 {{ bulletin.text|safe }} |
bgneal@28 | 7 </div> |
bgneal@28 | 8 <p class="bulletin-meta">Posted: {{ bulletin.start_date|naturalday|capfirst }} |
bgneal@28 | 9 {{ bulletin.start_date|date:"H:i" }}.</p> |
bgneal@28 | 10 </div> |
bgneal@28 | 11 {% endfor %} |