fysm-4-1iframespace-accessstablestagetest-hooks
Last change
on this file since c27da9e was
c27da9e,
checked in by Alex Dehnert <adehnert@…>, 15 years ago
|
Use the name "category" consistently
We want to support ASA-defined "categories" and free-form "tags".
Unfortunately, when originally coding I used the terms interchangeably.
This replaces instances of the "tag" name with the "category" name,
thus freeing up "tag" for the new semantics.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | {% extends "base.html" %} |
---|
2 | {% load formcats %} |
---|
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>View by Category</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.categories.all %} |
---|
31 | <p class='tags'>categories: {{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.