]> git.0d.be Git - panikweb-studioneau.git/blob - panikweb_studioneau/templates/home.html
templates: redo <title> to have specific first
[panikweb-studioneau.git] / panikweb_studioneau / templates / home.html
1 {% extends "base.html" %}
2 {% load paniktags staticfiles i18n %}
3 {% block bodyID %}Home{% endblock %}
4
5 {% block htmltitle %}{{ radio_long_name }}{% endblock %}
6
7 {% block main %}
8
9 {% if focus %}
10 <div id="focus">
11   {% include "news/roll.html" with news=focus %}
12 </div>
13 {% endif %}
14
15 <div id="week">
16   <h2 data-this-week-label="{% trans "This Week" %}"
17       data-other-week-label="{% trans "Week Program" %}">{% trans "This Week" %}</h2>
18   {% weeknav %}
19   {% weekview include_nonstop=False %}
20 </div>
21
22 {% if shows %}
23 <div id="shows">
24   <h2>{% trans "Recent Shows" %}</h2>
25
26 <ul class="collection">
27 {% for episode in shows %}
28     <li>
29       {% include "includes/home-show.html" with episode=episode %}
30     </li>
31 {% endfor %}
32 {% include "includes/end-of-list-of-threes.html" with count=shows|length %}
33 </ul>
34   {% if shows_display_more %}
35   <div class="mehr-button"><a href="{% url 'emissions' %}">{% trans "More" %}</a></div>
36   {% endif %}
37 </div>
38 {% endif %}
39
40 {% if collections %}
41 <div id="collections">
42   <h2>{% trans "Collections" %}</h2>
43
44 <ul class="collection">
45 {% for emission in collections %}
46     <li>
47     {% emission_resume %}
48     </li>
49 {% endfor %}
50 {% include "includes/end-of-list-of-threes.html" with count=collections|length %}
51 </ul>
52   {% if collections_display_more %}
53   <div class="mehr-button"><a href="{% url 'collections' %}">{% trans "More" %}</a></div>
54   {% endif %}
55 </div>
56 {% endif %}
57
58 {% if newsitems %}
59 <div id="news">
60   <h2>{% trans "Events" %}</h2>
61
62   <ul class="collection">
63 {% for newsitem in newsitems %}
64     <li>
65             {% include "news/item.html" with newsitem=newsitem %}
66     </li>
67 {% endfor %}
68 {% include "includes/end-of-list-of-threes.html" with count=newsitems|length %}
69   </ul>
70
71   {% if newsitems_display_more %}
72   <div class="mehr-button"><a href="{% url 'news' %}">{% trans "More" %}</a></div>
73   {% endif %}
74
75 </div>
76 {% endif %}
77
78
79 {% comment %}
80 <div id="tags">
81  <h2>{% trans "Tags" %}</h2>
82
83  <ul class="tags">
84    {% get_tags as tags %}
85    {% for tag in tags %}
86    <li><a href="{% url "tag-items" slug=tag.slug %}">{{ tag }}</a></li>
87    {% endfor %}
88  </ul>
89 </div>
90 {% endcomment %}
91
92 <div id="newsletter">
93  <h2>{% trans "Newsletter" %}</h2>
94  {% include "newsletter/subscriber_form_embed.html" %}
95 </div>
96 {% endblock %}