]> git.0d.be Git - panikweb.git/blob - panikweb/templates/home.html
move static & templates to panikweb project directory
[panikweb.git] / panikweb / 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 head %}
7 {{ block.super }}
8 <script type="application/ld+json">
9 {
10   "@context": "http://schema.org",
11   "@type": "Organization",
12   "url": "http://www.radiopanik.org",
13   "name" : "Radio Panik",
14   "potentialAction": {
15     "@type": "SearchAction",
16     "target": "http://www.radiopanik.org/recherche/?q={search_term_string}",
17     "query-input": "required name=search_term_string"
18   }
19 }
20 </script>
21 {% endblock %}
22
23 {% block main %}
24
25 <div class="sided wrapper navigation" id="specialHome">
26     <div>
27             <div class="leftPart">
28                     <h1 class="top"><a href="{% url 'grid' %}">{% trans 'Program' %}</a></h1>
29                     <h2 class="bg-title"><a href="{% url 'program' %}">{% trans 'This week on Panik' %}</a></h2>
30
31                     {% weeknav %}
32                     {% weekview %}
33             </div>
34
35             <div class="rightPart">
36                     <h1 class="top">{% trans 'Focus' %}</h1>
37                     {% newsroll %}
38
39
40               <form method="post" action="{% url 'newsletter-subscribe' %}"
41                       class="marged" id="subscribe-form">
42               <p>{% trans 'Every Monday, the news of the Panik week:' %}</p>
43                 <input required name="email" type="email" placeholder="votre adresse email">
44                 <button>{% trans 'Subscribe' %}</button>
45               </form>
46
47
48             {% if newsitems %}
49
50                     <div id="recent-news">
51                     <h3 class="sectionLabel right"><a href="{% url 'newsArchives' %}">Toutes</a></h3>
52                     <h3 class="sectionLabel"><a href="{% url 'news' %}">{% trans 'Latest News' %}</a>&nbsp;<a class="button icon-rss inBlock" href="{% url 'atom-feed' %}"></a></h3>
53                     <ul class="custom list">
54                     {% for content in newsitems %}
55                     <li class="item">{% news_inline %}</li>
56                     {% endfor %}
57                     </ul>
58                     </div>
59             {% endif %}
60
61
62             {% if soundfiles %}
63
64                     <div id="recent-sounds">
65                     <h3 class="sectionLabel right"><a href="{% url 'listenArchives' %}">Tous</a></h3>
66                     <h3 class="sectionLabel"><a href="{% url 'listen' %}">{% trans 'Latest Sounds' %}</a>&nbsp;<a class="button icon-rss inBlock" href="{% url 'podcasts-feed' %}"></a></h3>
67                     <ul class="custom list">
68                     {% for soundfile in soundfiles %}
69                             <li class="item {% for category in soundfile.episode.emission.categories.all %} {{ category|slugify }}{% endfor %}">
70                               {% soundfile_resume soundfile=soundfile date=soundfile.first_diffusion %}
71                             </li>
72                     {% endfor %}
73                     </ul>
74                     </div>
75                     {% endif %}
76
77             {% if emissions %}
78                     <div id="recent-emissions">
79                     <h3 class="sectionLabel right"><a href="{% url 'emissions' %}">Toutes</a></h3>
80                     <h3 class="sectionLabel">{% trans 'New emissions' %}</h3>
81                     <ul class="custom list padded">
82                     {% for emission in emissions %}
83                             <li class="item">
84                             {% emission_resume %}
85                             </li>
86                     {% endfor %}
87                     </ul>
88                     </div>
89                     {% endif %}
90             </div>
91     </div>
92 </div>
93
94 {% endblock %}