]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/home.html
style: experiment with some big background text
[panikweb.git] / panikweb_templates / 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
34               <form method="post" action="{% url 'newsletter-subscribe' %}"
35                       class="marged" id="subscribe-form">
36               <p>{% trans 'Every Monday, the news of the Panik week:' %}</p>
37                 {{ newsletter_form.as_table }}
38                 <button>{% trans 'Subscribe' %}</button>
39               </form>
40             </div>
41
42             <div class="rightPart">
43                     <h1 class="top">{% trans 'Focus' %}</h1>
44                     {% newsroll %}
45
46             {% if newsitems %}
47
48                     <div id="recent-news">
49                     <h3 class="sectionLabel right"><a href="{% url 'newsArchives' %}">Toutes</a></h3>
50                     <h3 class="sectionLabel"><a href="{% url 'news' %}">{% trans 'Latest News' %}</a>&nbsp;<a class="button icon-rss inBlock" href="{% url 'atom-feed' %}"></a></h3>
51                     <ul class="custom list">
52                     {% for content in newsitems %}
53                     <li class="item">{% news_inline %}</li>
54                     {% endfor %}
55                     </ul>
56                     </div>
57             {% endif %}
58
59
60             {% if soundfiles %}
61
62                     <div id="recent-sounds">
63                     <h3 class="sectionLabel right"><a href="{% url 'listenArchives' %}">Tous</a></h3>
64                     <h3 class="sectionLabel"><a href="{% url 'listen' %}">{% trans 'Latest Sounds' %}</a>&nbsp;<a class="button icon-rss inBlock" href="{% url 'podcasts-feed' %}"></a></h3>
65                     <ul class="custom list">
66                     {% for soundfile in soundfiles %}
67                             <li class="item {% for category in soundfile.episode.emission.categories.all %} {{ category|slugify }}{% endfor %}">
68                               {% soundfile_resume soundfile=soundfile date=soundfile.first_diffusion %}
69                             </li>
70                     {% endfor %}
71                     </ul>
72                     </div>
73                     {% endif %}
74
75             {% if emissions %}
76                     <div id="recent-emissions">
77                     <h3 class="sectionLabel right"><a href="{% url 'emissions' %}">Toutes</a></h3>
78                     <h3 class="sectionLabel">{% trans 'New emissions' %}</h3>
79                     <ul class="custom list padded">
80                     {% for emission in emissions %}
81                             <li class="item">
82                             {% emission_resume %}
83                             </li>
84                     {% endfor %}
85                     </ul>
86                     </div>
87                     {% endif %}
88             </div>
89     </div>
90 </div>
91
92 {% endblock %}