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