1 {% extends "base.html" %}
2 {% load paniktags staticfiles thumbnail i18n %}
3 {% block title %}{% trans 'Sounds' %}{% endblock %}
5 <h1 class="top bg-title"><a href="{% url 'listen' %}">{% trans 'Sounds' %}</a></h1>
11 <div class="detail marged soundfiles cf">
12 <div class="wrapper navigation">
14 <p class="intro leftPart">
15 Émissions et fragments sonores à (ré-)écouter, à partager et à télécharger.
18 <div class="leftPart">
19 <div class="soundfiles">
20 <h5 class="sectionLabel focus-title">{% trans 'Focus' %}</h5>
22 <ul class="custom columns cf padded">
23 {% for soundfile in focus %}
24 <li class="soundfile frontpage">
25 <div class="content content-inline cf special">
26 <a class="block cf" href="{% url 'episode-view' emission_slug=soundfile.episode.emission.slug slug=soundfile.episode.slug %}">
27 <div class="label labels absolute">
28 <span class="item inBlock">{{ soundfile.format.title }}</span>
31 {% if soundfile.episode.image %}
32 {% thumbnail soundfile.episode.image "480x320" crop="50% 25%" as im %}
33 <img class="normal" src="{{im.url}}"/>
35 {% elif soundfile.episode.emission.image %}
36 {% thumbnail soundfile.episode.emission.image "480x320" crop="50% 25%" as im %}
37 <img class="normal" src="{{im.url}}"/>
40 <img class="normal" src="{% static "img/sound.png" %}"/>
44 {% if soundfile.fragment and soundfile.title %}
45 <h5 class="title">{{ soundfile.title }}</h5>
47 <h5 class="title">{{ soundfile.episode.title }}</h5>
48 <h5 class="title">{{ soundfile.episode.emission.title }}</h5>
49 <div class="description">
50 {{ soundfile.episode.text|safe|striptags|truncatewords:75}}
52 {% if soundfile.first_diffusion %}
53 <div class="smooth">{{ soundfile.first_diffusion|date:"d/m/Y" }}</div>
57 {% audio sound=soundfile %}
64 <div class="rightPart">
66 <h5 class="sectionLabel right">
67 <a href="{% url 'listenArchives' %}"><span class="iconLabel">Tous</span></a>
69 <h5 class="sectionLabel">{% trans 'Latest Sounds' %} <a
70 class="button icon-rss inBlock" href="{% url 'podcasts-feed' %}"></a></h5>
72 <form action="{% url 'listenArchives' %}" id="search-form">
73 <input id="id_q" name="q" type="text" {% if search_query %}value="{{ search_query }}"{% endif %}>
74 <button class="icon-search"><span class="sr-only">{% trans "Search" %}</span></button>
77 <ul class="custom list soundfilesList">
78 {% for soundfile in soundfiles|slice:":20" %}
80 {% soundfile_resume soundfile=soundfile date=soundfile.first_diffusion %}