src/hp/templates/hp/all_videos.html
changeset 39 6b6d2efb0610
parent 38 0fe2f3f5466f
child 45 316a0101512e
equal deleted inserted replaced
38:0fe2f3f5466f 39:6b6d2efb0610
     8 {% trans "Hyperplateau : all videos" %}
     8 {% trans "Hyperplateau : all videos" %}
     9 {% endblock %}
     9 {% endblock %}
    10 
    10 
    11 {% block css_declaration %}
    11 {% block css_declaration %}
    12 {{ block.super }}
    12 {{ block.super }}
    13 <link rel="stylesheet" href="{% static "hp/css/home.css" %}" type="text/css"/>
    13 <link rel="stylesheet" href="{% static "hp/css/videos.css" %}" type="text/css"/>
    14 {% endblock %}
    14 {% endblock %}
    15 
    15 
    16 
    16 
    17 {% block body %}
    17 {% block body %}
    18 {{block.super}}
    18 {{block.super}}
    19 <!-- all videos -->
    19 <!-- all videos -->
    20 <ul class="floatlist full_width" id="derniers_medias">
    20 
    21     <li class="li_h2">
    21 <div class="main row">
    22       <ul class="title_ul">
    22     <h2>{% trans 'All videos' %}</h2>
    23         <li><h2>
    23     <div class="row">
    24         {% trans 'All videos' %}</h2>
       
    25         </li>
       
    26       </ul>
       
    27     </li>
       
    28     {% for content in results.objects %}
    24     {% for content in results.objects %}
    29     <li class="li_media">
    25         <div class="video">
    30         <div class="img_and_overlay">
    26             <p>
    31             <a href="{% url hp.views.show_video_details content.iri_id %}">
    27                 <a href="{% url hp.views.show_video_details content.iri_id %}">
    32                 {% thumbnail content.image "294x165" format="PNG" crop="center" as im %}<img src="{{ im.url }}" class="img_media" width="{{ im.width }}" height="{{ im.height }}" alt="{% trans 'open this media' %}" title="{% trans 'open this media' %}">{% endthumbnail %}
    28                     {% thumbnail content.image "320x240" format="PNG" crop="center" as im %}<img src="{{ im.url }}" class="img_media" width="{{ im.width }}" height="{{ im.height }}" alt="{% trans 'open this media' %}" title="{% trans 'open this media' %}">{% endthumbnail %}
    33             </a>
    29                 </a>
       
    30             </p>
       
    31             <h3>
       
    32                 <a href="{% url hp.views.show_video_details content.iri_id %}" title="{% trans 'open this media' %}" >{% if content.title|length > 69 %}{{content.title|slice:":69"}}...{% else %}{{content.title}}{% endif %}</a>
       
    33             </h3>
       
    34             <p>
       
    35                 {% trans 'Duration:' %}
       
    36                 <span class="video-duration">{{content.duration|str_duration:"h"}}</span>
       
    37             </p>
    34         </div>
    38         </div>
    35         <p><a href="{% url hp.views.show_video_details content.iri_id %}" title="{% trans 'open this media' %}" ><b>{% if content.title|length > 69 %}{{content.title|slice:":69"}}...{% else %}{{content.title}}{% endif %}</b></a></p>
    39         {% if forloop.counter|divisibleby:3 %}
    36         <p>{% trans 'by' %} IRI | {{content.duration|str_duration:"h"}}</p>
    40     </div><div class="row">
    37     </li>
    41         {% endif %}
    38     {% endfor %}
    42     {% endfor %}
    39 </ul>
    43     </div>
       
    44 </div>
    40 {% endblock %}
    45 {% endblock %}