source: asadb/template/fysm/fysm_listing.html @ 1c853ea

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

Make logo optional

  • Property mode set to 100644
File size: 1.2 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        {% if fysm.logo %}
27        <img src='{{ MEDIA_URL }}{{fysm.logo}}' alt='{{fysm.display_name}} logo' />
28        {% else %}
29        <p>[ No logo ]</p>
30        {% endif %}
31    </div>
32    <p class='data'>{{fysm.description}}</p>
33    <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>
34    {% if fysm.categories.all %}
35    <p class='tags'>categories: {{fysm|format_categories:year}}</p>
36    {% endif %}
37</div>
38{% endfor %}
39
40{% endblock %}
41
Note: See TracBrowser for help on using the repository browser.