]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/home.html
68d7b1fd24f72a6236f5354841746faa85a42c72
[panikweb.git] / panikweb_templates / templates / home.html
1 {% extends "base.html" %}
2 {% load thumbnails paniktags staticfiles i18n %}
3 {% block bodyID %}Home{% endblock %}
4 {% block title %}{% trans 'Home' %}{% endblock %}
5
6 {% block head %}
7 <meta property="og:title" content="Radio Panik - 105.4 FM" />
8 <meta property="og:description" content="En vous branchant sur le 105.4 FM, vous pénétrerez plus avant dans l'œil du cyclone…" />
9 {% endblock %}
10
11 {% block main %}
12
13 <div class="sided wrapper navigation" id="specialHome">
14     <div>
15             <div class="leftPart">
16                     <h1 class="top"><a href="{% url 'grid' %}">{% trans 'Program' %}</a></h1>
17                     <h2><a href="{% url 'program' %}">{% trans 'This week on Panik' %}</a></h2>
18
19                     {% weeknav %}
20                     {% weekview %}
21
22               <form method="post" action="{% url 'newsletter-subscribe' %}"
23                       class="marged" id="subscribe-form">
24               <p>{% trans 'Every Monday, the news of the Panik week:' %}</p>
25                 {{ newsletter_form.as_table }}
26                 <button>{% trans 'Subscribe' %}</button>
27               </form>
28             </div>
29
30             <div class="rightPart">
31                     <h1 class="top">{% trans 'Focus' %}</h1>
32                     {% newsroll %}
33
34             {% if newsitems %}
35
36                     <div id="recent-news">
37                     <h3 class="sectionLabel right"><a href="{% url 'newsArchives' %}">Toutes</a></h3>
38                     <h3 class="sectionLabel"><a href="{% url 'news' %}">{% trans 'Latest News' %}</a>&nbsp;<a class="button icon-rss inBlock" href="{% url 'atom-feed' %}"></a></h3>
39                     <ul class="custom list">
40                     {% for content in newsitems %}
41                     <li class="item">{% news_inline %}</li>
42                     {% endfor %}
43                     </ul>
44                     </div>
45             {% endif %}
46
47
48             {% if soundfiles %}
49
50                     <div id="recent-sounds">
51                     <h3 class="sectionLabel right"><a href="{% url 'listenArchives' %}">Tous</a></h3>
52                     <h3 class="sectionLabel"><a href="{% url 'listen' %}">{% trans 'Latest Sounds' %}</a>&nbsp;<a class="button icon-rss inBlock" href="{% url 'podcasts-feed' %}"></a></h3>
53                     <ul class="custom list">
54                     {% for soundfile in soundfiles %}
55                             <li class="item {% for category in soundfile.episode.emission.categories.all %} {{ category|slugify }}{% endfor %}">
56                               {% soundfile_resume soundfile=soundfile date=soundfile.first_diffusion %}
57                             </li>
58                     {% endfor %}
59                     </ul>
60                     </div>
61                     {% endif %}
62
63             {% if emissions %}
64                     <div id="recent-emissions">
65                     <h3 class="sectionLabel right"><a href="{% url 'emissions' %}">Toutes</a></h3>
66                     <h3 class="sectionLabel">{% trans 'New emissions' %}</h3>
67                     <ul class="custom list padded">
68                     {% for emission in emissions %}
69                             <li class="item">
70                             {% emission_resume %}
71                             </li>
72                     {% endfor %}
73                     </ul>
74                     </div>
75                     {% endif %}
76             </div>
77     </div>
78 </div>
79
80 {% endblock %}