source: asadb/template/fysm/fysm_listing.html @ 2eefd9f

fysm-4-1space-accessstablestagetest-hooks
Last change on this file since 2eefd9f was 2eefd9f, checked in by Alex Dehnert <adehnert@…>, 15 years ago

Brand the main FYSM page like the detail pages

Previously, the main FYSM page was branded like the "database" pages. This
is unfortunate, because we mostly don't want prefrosh to look at the rest
of the database, but do want them to look at the rest of the FYSM, so it
seems like it should match the FYSM instead of the rest of the "database".
Also, the navigation links to get to the rest of the "database" are now
gone.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1{% extends "base-plain.html" %}
2{% load formcats %}
3
4{% block title %}First Year Summer Mailing{% endblock %}
5{% block content %}
6
7<div class='fysm-summarystrip'>
8<h3 class='display-name'>First Year Summer Mailing ({{year}})</h3>
9</div>
10
11<div style='padding: 1em;'>
12{% if category %}
13<h2>{{category.name}} Groups</h2>
14<p>{{category.blurb}}</p>
15<p><a href='{% url fysm year %}'>Return to all categories</a></p>
16{% else %}
17<h3>View by Category</h3>
18<ul>
19{% for cat in categories %}
20<li><a href='{% url fysm year cat.slug %}'>{{cat}}</a></li>
21{% endfor %}
22</ul>
23{% endif %}
24</div>
25
26{% for fysm in fysm_list %}
27<div class='single-fysm-entry'>
28    <h3><a href='{% url fysm-view year fysm.pk %}'>{{fysm.display_name}}</a></h3>
29    <div class='fysm-body'>
30    <div class='logo'>
31        {% if fysm.logo %}
32        <img src='{{ MEDIA_URL }}{{fysm.logo}}' alt='{{fysm.display_name}} logo' />
33        {% else %}
34        <p>[ No logo ]</p>
35        {% endif %}
36    </div>
37    <p class='data'>{{fysm.description}}</p>
38    <p class='join'><a href='{% url fysm-link year "join" fysm.pk %}'>Join {{fysm.display_name}}!</a> Have questions? Send them to <a href='mailto:{{fysm.contact_email}}'>{{fysm.contact_email}}</a>!</p>
39    </div>
40    {% if fysm.tags %}
41    <p class='tags'>tags: {{fysm.tags}}</p>
42    {% endif %}
43    {% if fysm.categories.all %}
44    <p class='tags'>categories: {{fysm|format_categories:year}}</p>
45    {% endif %}
46</div>
47{% endfor %}
48
49{% endblock %}
50
Note: See TracBrowser for help on using the repository browser.