]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/home.html
8bc16f7f05cc2fb91ebb8dd20c8e199c6ed1d1a9
[panikweb.git] / panikweb_templates / templates / home.html
1 {% extends "base.html" %}
2 {% load thumbnails %}
3 {% load paniktags %}
4 {% load staticfiles %}
5 {% load i18n %}
6 {% block bodyID %}Home{% endblock %}
7 {% block title %}Home{% endblock %}
8 {% block nav %}
9 <div  class="mainSub">
10     <div class="wrapper">
11         <nav>
12         <form method="get" action="{% url 'search' %}" class="big marged" id="search-form">
13                 <label for="id_q">Rechercher:</label><input id="id_q" name="q" type="text"><button class="icon-search"></button>
14         </form>
15         </nav>
16     </div>
17 </div>
18 {% endblock %}
19 {% block main %}
20 <div class="marged">
21 </div>
22
23
24 <div class="sided wrapper navigation" id="specialHome">
25     <div class="marged">
26             <div class="leftPart">
27                     <h2><a href="{% url 'program' %}">Cette semaine sur Panik</a></h2>
28
29                     {% weeknav %}
30                     {% weekview %}
31
32               <form method="post" action="{% url 'newsletter-subscribe' %}"
33                       class="big center padded marged" id="subscribe-form">
34               <p>Tous les lundis, l'actualité de la semaine de Panik :</p>
35                 {% csrf_token %}
36                 {{ newsletter_form.as_table }}
37                 <button>M'inscrire</button>
38               </form>
39             </div>
40
41             <div class="rightPart">
42                     <h3 class="sectionLabel">Focus</h3>
43                 {% with focus as news %}
44                         {% newsroll %}
45                 {% endwith %}
46             {% if soundfiles %}
47
48                     <div id="recent-sounds">
49                     <h3 class="sectionLabel right"><a href="{% url 'listen' %}">Tous</a></h3>
50                     <h3 class="sectionLabel">Derniers sons&nbsp;<a class="button icon-rss inBlock" title="{% trans 'Podcast sounds' %}" href="{% url 'podcasts-feed' %}"></a></h3>
51                     <ul class="custom columns list">
52                     {% for soundfile in soundfiles %}
53                             <li class="item {% if soundfile.episode.emission.categories.all.count = 0 %}nocat{% endif %} {% for category in soundfile.episode.emission.categories.all %} {{ category|slugify }}{% endfor %}">
54                               {% soundfile_resume soundfile=soundfile date=soundfile.first_diffusion %}
55                             </li>
56                     {% endfor %}
57                     </ul>
58                     </div>
59                     {% endif %}
60
61             {% if emissions %}
62                     <div id="recent-emissions">
63                     <h3 class="sectionLabel"><a href="{% url 'emissions' %}">Nouveau dans la grille</a></h3>
64                     <ul class="custom list columns padded">
65                     {% for emission in emissions %}
66                             <li class="item ellipsis">
67                                     <a href="{% url 'emission-view' slug=emission.slug %}">
68                                             {% if emission.image %}
69                                                     <img style="float:right;margin-left:1em;" src="{{ emission.image|thumbnail:'20x20' }}"/>
70                                             {% endif %}
71                                             {{ emission.title }}
72                                     </a>
73                             </li>
74                     {% endfor %}
75                     </ul>
76                     </div>
77                     {% endif %}
78             </div>
79     </div>
80 </div>
81
82 {% endblock %}
83 {% block related %}
84
85 {% endblock %}