home.html 2.92 KB
Newer Older
1
{% extends "base.html" %}
2
{% load paniktags staticfiles i18n %}
Simon Daron's avatar
Simon Daron committed
3
{% block bodyID %}Home{% endblock %}
fred's avatar
fred committed
4
{% block title %}{% trans 'Home' %}{% endblock %}
5 6

{% block head %}
fred's avatar
fred committed
7
{{ block.super }}
fred's avatar
fred committed
8 9 10 11 12 13 14 15 16 17 18 19 20
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Organization",
  "url": "http://www.radiopanik.org",
  "name" : "Radio Panik",
  "potentialAction": {
    "@type": "SearchAction",
    "target": "http://www.radiopanik.org/recherche/?q={search_term_string}",
    "query-input": "required name=search_term_string"
  }
}
</script>
21 22
{% endblock %}

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 32

		    {% weeknav %}
		    {% weekview %}
33 34 35 36 37 38
	    </div>

	    <div class="rightPart">
		    <h1 class="top">{% trans 'Focus' %}</h1>
		    {% newsroll %}

39

40
	      <form method="post" action="{% url 'newsletter-subscribe' %}"
41
		      class="marged" id="subscribe-form">
fred's avatar
fred committed
42
	      <p>{% trans 'Every Monday, the news of the Panik week:' %}</p>
43
                <input required name="email" type="email" placeholder="votre adresse email">
fred's avatar
fred committed
44
	        <button>{% trans 'Subscribe' %}</button>
45 46
	      </form>

fred's avatar
fred committed
47 48 49 50

            {% if newsitems %}

		    <div id="recent-news">
51
		    <h3 class="sectionLabel right"><a href="{% url 'newsArchives' %}">Toutes</a></h3>
fred's avatar
fred committed
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>
fred's avatar
fred committed
53 54 55 56 57 58 59 60 61
		    <ul class="custom list">
		    {% for content in newsitems %}
		    <li class="item">{% news_inline %}</li>
		    {% endfor %}
		    </ul>
		    </div>
	    {% endif %}


62 63 64
            {% if soundfiles %}

		    <div id="recent-sounds">
65
		    <h3 class="sectionLabel right"><a href="{% url 'listenArchives' %}">Tous</a></h3>
fred's avatar
fred committed
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 %}
fred's avatar
fred committed
69
			    <li class="item {% for category in soundfile.episode.emission.categories.all %} {{ category|slugify }}{% endfor %}">
70 71 72 73 74 75
			      {% soundfile_resume soundfile=soundfile date=soundfile.first_diffusion %}
			    </li>
		    {% endfor %}
		    </ul>
		    </div>
		    {% endif %}
76

77 78
            {% if emissions %}
		    <div id="recent-emissions">
79
		    <h3 class="sectionLabel right"><a href="{% url 'emissions' %}">Toutes</a></h3>
fred's avatar
fred committed
80
		    <h3 class="sectionLabel">{% trans 'New emissions' %}</h3>
81
		    <ul class="custom list padded">
82
		    {% for emission in emissions %}
83 84
			    <li class="item">
			    {% emission_resume %}
85 86 87 88 89
			    </li>
		    {% endfor %}
		    </ul>
		    </div>
		    {% endif %}
90
	    </div>
91
    </div>
92 93
</div>

fred's avatar
fred committed
94
{% endblock %}