1 {% extends
"base.html" %}
11 {% block mainmenu %}{{
"/directory/"|main_menu }}{% endblock %}
12 {% block sectionmenu %}{{
"/directory/"|section_menu }}{% endblock %}
14 {% block title %}{% trans
"Podcast Directory" %}{% endblock %}
17 <h1>{% trans
"Podcast Directory" %}
</h1>
23 {% for c in topics.categories %}
25 {% if forloop.counter0|divisibleby:
"2" %}
26 <div class=
"row-fluid">
30 {% if c.cls ==
"PodcastList" %}
31 {% url
"user" c.username as user-lists-url %}
32 <h2>{% blocktrans with c.title as listtitle and c.username as username %}{{ listtitle }}
<span class=
"by-user">by
<a href=
"{{ user-lists-url }}">{{ username }}
</a></span>{% endblocktrans %}
</h2>
34 <h2>{{ c.label }}
</h2>
38 {% for podcast in c.get_podcasts %}
40 <td class=
"logo">{{ podcast|podcast_logo }}
</td>
41 <td>{% podcast_group_link podcast %}
</td>
47 {% if c.cls ==
"PodcastList" %}
48 <a href=
"{% url "list-show
" c.username c.slug %}">{% trans
"more..." %}
</a>
50 <a href=
"{% url "directory
" c.label %}">{% trans
"more..." %}
</a>
57 {% if forloop.counter|divisibleby:
"2" %}
64 <hr style=
"clear: both;"/>
66 {% cache
60 tagcloud %}
68 {% for tag in topics.tagcloud %}
69 <span style=
"font-size: {% smartwidthratio tag.get_weight topics.min_weight topics.max_weight 4 1 %}em">
70 <a href=
"{% url "directory
" tag.label %}">{{ tag.label }}
</a>
80 {% cache
3600 podcastlist %}
81 {% for podcastlist in podcastlists %}
82 {% if podcastlist and podcastlist.user.username %}
85 <a href=
"{% url "list-show
" podcastlist.user.username podcastlist.slug %}">
86 {{ podcastlist.title }}
88 <small>{% trans
"Podcast List by" %}
89 <a href=
"{% url "lists-user
" podcastlist.user.username %}">
90 {{ podcastlist.user.username }}
95 <div class=
"logo-group">
96 {% for podcast in podcastlist.podcasts %}
98 <a href=
"{% podcast_link_target podcast %}">
99 {{ podcast|podcast_logo }}
104 {% if podcastlist.more_podcasts %}
105 {% blocktrans with podcastlist.more_podcasts as more %}and {{ more }} more{% endblocktrans %}
109 <div class=
"btn-group">
110 <a class=
"btn btn-primary" href=
"{% url "lists-overview
" %}">
111 {% trans
"Create a Podcast List" %}
121 {% cache
3600 directory_trending %}
122 {% if trending_podcasts %}
123 {% with trending_podcasts|slice:
":1"|first as trending_podcast %}
124 {% if trending_podcast %}
127 <h4><small>{% trans
"Trending" %} {% subscriber_change trending_podcast.subscriber_change %}
</small></h4>
129 <a href=
"{% podcast_link_target trending_podcast %}">
130 <div id=
"podcastlogo">{{ trending_podcast|podcast_logo_medium }}
</div>
133 <h4>{{ trending_podcast.title }}
</h4>
135 <p class=
"description">
136 {{ trending_podcast.description|default:
""|truncatewords:
"50" }}
140 <a href=
"{% podcast_link_target trending_podcast %}">{% trans
"more..." %}
</a>
150 {% cache
3600 random_podcast %}
151 {% for random_podcast in random_podcasts %}
154 <h4><small>{% trans
"Random" %}
</small></h4>
157 <a href=
"{% podcast_link_target random_podcast %}">
158 <div id=
"podcastlogo">{{ random_podcast|podcast_logo_medium }}
</div>
161 <h4>{{ random_podcast.title }}
</h4>
163 <p class=
"description">
164 {{ random_podcast.description|default:
""|truncatewords:
"50" }}
168 <a href=
"{% podcast_link_target random_podcast %}">{% trans
"more..." %}
</a>