Mercurial > public > sg101
view gpp/templates/bulletins/bulletins.html @ 479:32cec6cd8808
Refactor RateLimiter so that if Redis is not running, everything still runs normally (minus the rate limiting protection). My assumption that creating a Redis connection would throw an exception if Redis wasn't running was wrong. The exceptions actually occur when you issue a command. This is for #224.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 25 Sep 2011 00:49:05 +0000 |
parents | 04377c5bf912 |
children |
line wrap: on
line source
{% 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 %}