replace DirectoryEntry by extended Category data
[mygpo.git] / mygpo / web / templates / directory.html
blob96ab9e1e13142ab24dec4c2fa7346b157e3fb93f
1 {% extends "base.html" %}
3 {% load i18n %}
4 {% load podcasts %}
5 {% load charts %}
6 {% load math %}
7 {% load utils %}
9 {% load menu %}
10 {% block mainmenu %}{{ "/directory/"|main_menu }}{% endblock %}
11 {% block sectionmenu %}{{ "/directory/"|section_menu }}{% endblock %}
13 {% block title %}{% trans "Podcast Directory" %}{% endblock %}
15 {% block content %}
16 <h1>{% trans "Podcast Directory" %}</h1>
18 {% for cat in categories %}
20 <div class="intro-box">
21 <h2>{{ cat.tag }}</h2>
22 <table class="list">
23 {% for entry in cat.entries %}
24 <tr>
25 <td>{{ entry|podcast_logo }}</td>
26 <td>
27 <a href="{% url podcast entry.id %}">
28 {{ entry.title }}
29 </a>
30 </tr>
31 {% endfor %}
32 <tr>
33 <td></td>
34 <td><a href="{% url directory cat.tag %}">{% trans "more..." %}</a></td>
35 </tr>
36 </table>
37 </div>
39 {% if forloop.counter|divisibleby:"2" %}
40 <br style="clear: both" />
41 {% endif %}
43 {% endfor %}
45 <hr />
47 <div id="tagcloud">
48 {% for tag in tag_cloud %}
49 <span style="font-size: {% smartwidthratio tag.get_weight max_entries 4 1 %}em">
50 <a href="{% url directory tag.label %}">{{ tag.label }}</a>
51 </span>
52 {% endfor %}
53 </div>
55 {% endblock %}