1 {% extends "base.html" %}
2 {% load paniktags staticfiles thumbnails i18n %}
3 {% block title %}{% trans 'Sounds' %}{% endblock %}
5 <h1 class="top"><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 <img class="normal" src="{{ soundfile.episode.image|thumbnail:'480x320' }}"/>
33 {% elif soundfile.episode.emission.image %}
34 <img class="normal" src="{{ soundfile.episode.emission.image|thumbnail:'480x320' }}"/>
36 <img class="normal" src="{% static "img/sound.png" %}"/>
40 {% if soundfile.fragment and soundfile.title %}
41 <h5 class="title">{{ soundfile.title }}</h5>
43 <h5 class="title">{{ soundfile.episode.title }}</h5>
44 <h5 class="title">{{ soundfile.episode.emission.title }}</h5>
45 <div class="description">
46 {{ soundfile.episode.text|safe|striptags|truncatewords:75}}
48 {% if soundfile.first_diffusion %}
49 <div class="smooth">{{ soundfile.first_diffusion|date:"d/m/Y" }}</div>
53 {% audio sound=soundfile %}
60 <div class="rightPart">
62 <h5 class="sectionLabel right">
63 <a href="{% url 'listenArchives' %}"><span class="iconLabel">Tous</span></a>
65 <h5 class="sectionLabel">{% trans 'Latest Sounds' %} <a
66 class="button icon-rss inBlock" href="{% url 'podcasts-feed' %}"></a></h5>
68 <form action="{% url 'listenArchives' %}" id="search-form">
69 <input id="id_q" name="q" type="text" {% if search_query %}value="{{ search_query }}"{% endif %}>
70 <button class="icon-search"></button>
73 <ul class="custom list soundfilesList">
74 {% for soundfile in soundfiles|slice:":20" %}
76 {% soundfile_resume soundfile=soundfile date=soundfile.first_diffusion %}