-{% load i18n paniktags %}
+{% load i18n paniktags static thumbnail %}
+{% if cell.placeholder == 'sidebar' or sidebar %}
<h3 class="sectionLabel right">
<a href="{% url 'listenArchives' %}"><span class="iconLabel">Tous</span></a>
</h3>
- <h3 class="sectionLabel">{% trans 'Latest Sounds' %} <a
- class="button icon-rss inBlock" href="{% url 'podcasts-feed' %}"></a></h3>
+ <h3 class="sectionLabel">{% if cell.title %}{{ cell.title }}{% else %}{% trans 'Latest Sounds' %}{% endif %}
+ <a class="button icon-rss inBlock" href="{% url 'podcasts-feed' %}"></a></h3>
{% if include_search_input %}
<form action="{% url 'listenArchives' %}" id="search-form">
{% endwith %}
{% endwith %}
</ul>
+{% else %}
+ <h3 class="sectionLabel">{% firstof title cell.title %}</h3>
+
+ <ul class="custom columns cf padded">
+ {% for soundfile in soundfiles %}
+ <li class="soundfile frontpage">
+ <div class="content content-inline cf special">
+ <a class="block cf" href="{% url 'episode-view' emission_slug=soundfile.episode.emission.slug slug=soundfile.episode.slug %}">
+ <div class="label labels absolute">
+ <span class="item inBlock">{{ soundfile.format.title }}</span>
+ </div>
+ <div class="logo">
+ {% if soundfile.episode.image %}
+ {% thumbnail soundfile.episode.image "480x320" crop="50% 25%" as im %}
+ <img class="normal" src="{{im.url}}"/>
+ {% endthumbnail %}
+ {% elif soundfile.episode.emission.image %}
+ {% thumbnail soundfile.episode.emission.image "480x320" crop="50% 25%" as im %}
+ <img class="normal" src="{{im.url}}"/>
+ {% endthumbnail %}
+ {% else %}
+ <img class="normal" src="{% static "img/sound.png" %}"/>
+ {% endif %}
+ </div>
+ <div class="content">
+ {% if soundfile.fragment and soundfile.title %}
+ <h5 class="title">{{ soundfile.title }}</h5>
+ {% endif %}
+ <h5 class="title">{{ soundfile.episode.title }}</h5>
+ <h5 class="title">{{ soundfile.episode.emission.title }}</h5>
+ <div class="description">
+ {{ soundfile.episode.text|safe|striptags|truncatewords:75}}
+ </div>
+ {% if soundfile.first_diffusion %}
+ <div class="smooth">{{ soundfile.first_diffusion|date:"d/m/Y" }}</div>
+ {% endif %}
+ </div>
+ </a>
+ {% audio sound=soundfile %}
+ </div>
+ </li>
+ {% endfor %}
+ </ul>
+
+{% endif %}
</p>
<div class="leftPart">
- <div class="soundfiles">
- <h5 class="sectionLabel focus-title">{% trans 'Focus' %}</h5>
-
- <ul class="custom columns cf padded">
- {% for soundfile in focus %}
- <li class="soundfile frontpage">
- <div class="content content-inline cf special">
- <a class="block cf" href="{% url 'episode-view' emission_slug=soundfile.episode.emission.slug slug=soundfile.episode.slug %}">
- <div class="label labels absolute">
- <span class="item inBlock">{{ soundfile.format.title }}</span>
- </div>
- <div class="logo">
- {% if soundfile.episode.image %}
- {% thumbnail soundfile.episode.image "480x320" crop="50% 25%" as im %}
- <img class="normal" src="{{im.url}}"/>
- {% endthumbnail %}
- {% elif soundfile.episode.emission.image %}
- {% thumbnail soundfile.episode.emission.image "480x320" crop="50% 25%" as im %}
- <img class="normal" src="{{im.url}}"/>
- {% endthumbnail %}
- {% else %}
- <img class="normal" src="{% static "img/sound.png" %}"/>
- {% endif %}
- </div>
- <div class="content">
- {% if soundfile.fragment and soundfile.title %}
- <h5 class="title">{{ soundfile.title }}</h5>
- {% endif %}
- <h5 class="title">{{ soundfile.episode.title }}</h5>
- <h5 class="title">{{ soundfile.episode.emission.title }}</h5>
- <div class="description">
- {{ soundfile.episode.text|safe|striptags|truncatewords:75}}
- </div>
- {% if soundfile.first_diffusion %}
- <div class="smooth">{{ soundfile.first_diffusion|date:"d/m/Y" }}</div>
- {% endif %}
- </div>
- </a>
- {% audio sound=soundfile %}
- </div>
- </li>
- {% endfor %}
- </ul>
+ <div class="soundfiles focus-title">
+ {% include "combo/soundscell.html" with include_search_input=True count=10 title="Focus" soundfiles=focus %}
</div>
</div>
<div class="rightPart">
<div class="sub">
- {% include "combo/soundscell.html" with include_search_input=True count=20 %}
+ {% include "combo/soundscell.html" with include_search_input=True count=20 sidebar=True %}
</div>
</div>
</div>