fysm-4-1iframespace-accessstablestagetest-hooks
|
Last change
on this file since 7636bd3 was
7636bd3,
checked in by Geoffrey Thomas <geofft@…>, 15 years ago
|
|
Don't display categories if there are none
|
-
Property mode set to
100644
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | {% extends "base.html" %} |
|---|
| 2 | {% load formtags %} |
|---|
| 3 | |
|---|
| 4 | {% block title %}First Year Summer Mailing{% endblock %} |
|---|
| 5 | {% block content %} |
|---|
| 6 | |
|---|
| 7 | <h2>First Year Summer Mailing ({{year}})</h2> |
|---|
| 8 | |
|---|
| 9 | {% if category %} |
|---|
| 10 | <h2>{{category.name}} Groups</h2> |
|---|
| 11 | <p>{{category.blurb}}</p> |
|---|
| 12 | <p><a href='{% url fysm year %}'>Return to all categories</a></p> |
|---|
| 13 | {% else %} |
|---|
| 14 | <h3>Limit Group Categories</h3> |
|---|
| 15 | <ul> |
|---|
| 16 | {% for cat in categories %} |
|---|
| 17 | <li><a href='{% url fysm year cat.slug %}'>{{cat}}</a></li> |
|---|
| 18 | {% endfor %} |
|---|
| 19 | </ul> |
|---|
| 20 | {% endif %} |
|---|
| 21 | |
|---|
| 22 | {% for fysm in fysm_list %} |
|---|
| 23 | <div class='single-fysm-entry'> |
|---|
| 24 | <h3><a href='{{fysm.website}}'>{{fysm.display_name}}</a></h3> |
|---|
| 25 | <div class='logo'> |
|---|
| 26 | <img src='{{ MEDIA_URL }}{{fysm.logo}}' alt='{{fysm.display_name}} logo' /> |
|---|
| 27 | </div> |
|---|
| 28 | <p class='data'>{{fysm.description}}</p> |
|---|
| 29 | <p class='join'><a href='{{fysm.join_url}}'>Join {{fysm.display_name}}!</a> Have questions? Send them to <a href='mailto:{{fysm.contact_email}}'>{{fysm.contact_email}}</a>!</p> |
|---|
| 30 | {% if fysm.tags.all %} |
|---|
| 31 | <p class='tags'>tags: {{fysm|format_categories:year}}</p> |
|---|
| 32 | {% endif %} |
|---|
| 33 | </div> |
|---|
| 34 | {% endfor %} |
|---|
| 35 | |
|---|
| 36 | {% endblock %} |
|---|
| 37 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.