home.html 2.87 KB
Newer Older
Simon Daron's avatar
Simon Daron committed
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 %}

Simon Daron's avatar
Simon Daron committed
23
{% block main %}
24

25
<div class="sided wrapper navigation" id="specialHome">
26
    <div>
27
	    <div class="leftPart">
fred's avatar
fred committed
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 33

		    {% weeknav %}
		    {% weekview %}

34
	      <form method="post" action="{% url 'newsletter-subscribe' %}"
fred's avatar
fred committed
35
		      class="marged" id="subscribe-form">
fred's avatar
fred committed
36
	      <p>{% trans 'Every Monday, the news of the Panik week:' %}</p>
37
	        {{ newsletter_form.as_table }}
fred's avatar
fred committed
38
	        <button>{% trans 'Subscribe' %}</button>
39
	      </form>
40
	    </div>
41

42
	    <div class="rightPart">
fred's avatar
fred committed
43
		    <h1 class="top">{% trans 'Focus' %}</h1>
fred's avatar
fred committed
44
		    {% newsroll %}
fred's avatar
fred committed
45 46 47 48

            {% if newsitems %}

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


60 61 62
            {% if soundfiles %}

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

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

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