]> git.0d.be Git - panikweb.git/blobdiff - panikweb_templates/templates/listen.html
misc: run manage.py with python3
[panikweb.git] / panikweb_templates / templates / listen.html
index a3cbe599db0220479776cbd9994e0593dee448c6..c7153df1c67bf02e6fb236a979792a6ed3e68875 100644 (file)
@@ -1,8 +1,8 @@
 {% extends "base.html" %}
-{% load paniktags staticfiles thumbnail %}
-{% block title %}Sons{% endblock %}
+{% load paniktags staticfiles thumbnail i18n %}
+{% block title %}{% trans 'Sounds' %}{% endblock %}
 {% block toptitle %}
-<h1 class="top"><a href="{% url 'listen' %}">Sons</a></h1>
+<h1 class="top bg-title"><a href="{% url 'listen' %}">{% trans 'Sounds' %}</a></h1>
 {% endblock %}
 {% block nav %}
 {% endblock %}
 
 <p class="intro leftPart">
 Émissions et fragments sonores à (ré-)écouter, à partager et à télécharger.
-Entretien, magazine, interview, pièce sonore, reportage, toutes les formes sont
-bonnes à entendre.
 </p>
 
     <div class="leftPart">
       <div class="soundfiles">
-        <h5 class="sectionLabel">Focus</h5>
+        <h5 class="sectionLabel focus-title">{% trans 'Focus' %}</h5>
 
         <ul class="custom columns cf padded">
         {% for soundfile in focus %}
@@ -31,9 +29,13 @@ bonnes à entendre.
                 </div>
                 <div class="logo">
                   {% if soundfile.episode.image %}
-                  <img class="normal" src="{{ soundfile.episode.image|thumbnail:'480x320' }}"/>
+                  {% thumbnail soundfile.episode.image "480x320" crop="50% 25%" as im %}
+                  <img class="normal" src="{{im.url}}"/>
+                  {% endthumbnail %}
                   {% elif soundfile.episode.emission.image %}
-                  <img class="normal" src="{{ soundfile.episode.emission.image|thumbnail:'480x320' }}"/>
+                  {% 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 %}
@@ -64,12 +66,12 @@ bonnes à entendre.
         <h5 class="sectionLabel right">
           <a href="{% url 'listenArchives' %}"><span class="iconLabel">Tous</span></a>
         </h5>
-        <h5 class="sectionLabel">Derniers sons&nbsp;<a
+        <h5 class="sectionLabel">{% trans 'Latest Sounds' %}&nbsp;<a
                         class="button icon-rss inBlock" href="{% url 'podcasts-feed' %}"></a></h5>
 
        <form action="{% url 'listenArchives' %}" id="search-form">
                <input id="id_q" name="q" type="text" {% if search_query %}value="{{ search_query }}"{% endif %}>
-               <button class="icon-search"></button>
+                <button class="icon-search"><span class="sr-only">{% trans "Search" %}</span></button>
        </form>
 
         <ul class="custom list soundfilesList">