Mercurial > public > sg101
comparison gpp/templates/donations/index.html @ 67:4ec8d1d0ccbd
Donations: make an ordered list of the donors.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 27 Jun 2009 22:22:22 +0000 |
parents | 9a29e9933959 |
children | daa2916f5b34 |
comparison
equal
deleted
inserted
replaced
66:9a29e9933959 | 67:4ec8d1d0ccbd |
---|---|
24 </table> | 24 </table> |
25 </div> | 25 </div> |
26 <div class="span-9 last"> | 26 <div class="span-9 last"> |
27 <h3>Donors for {% now "F, Y" %}:</h3> | 27 <h3>Donors for {% now "F, Y" %}:</h3> |
28 {% if donations %} | 28 {% if donations %} |
29 <ul> | 29 <ol> |
30 {% for donation in donations %} | 30 {% for donation in donations %} |
31 <li> | 31 <li> |
32 {% if donation.is_anonymous %} | 32 {% if donation.is_anonymous %} |
33 {{ anonymous }} | 33 {{ anonymous }} |
34 {% else %} | 34 {% else %} |
38 {{ donation.donor }} | 38 {{ donation.donor }} |
39 {% endif %} | 39 {% endif %} |
40 {% endif %} | 40 {% endif %} |
41 </li> | 41 </li> |
42 {% endfor %} | 42 {% endfor %} |
43 </ul> | 43 </ol> |
44 {% else %} | 44 {% else %} |
45 <p>We haven't received any donations this month. You could be the first!</p> | 45 <p>We haven't received any donations this month. You could be the first!</p> |
46 {% endif %} | 46 {% endif %} |
47 </div> | 47 </div> |
48 | 48 |