# HG changeset patch # User cavaliet # Date 1326387174 -3600 # Node ID 2ac316b4d55af824d5610bf306d07329c307965f # Parent 271e8d0e251b12313e2bfebccf1c0b66345f043a Update all contents page with volume graph. diff -r 271e8d0e251b -r 2ac316b4d55a src/ldt/ldt/ldt_utils/templates/front/front_all_contents.html --- a/src/ldt/ldt/ldt_utils/templates/front/front_all_contents.html Thu Jan 12 16:25:13 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/front/front_all_contents.html Thu Jan 12 17:52:54 2012 +0100 @@ -5,11 +5,37 @@ {% block title %}Lignes de temps : groupe "{{group.name}}"{% endblock %} +{% block js_import %} +{{block.super}} + + +{% endblock %} + {% block css_import %} {{block.super}} {% endblock %} +{% block js_declaration %} +{{block.super}} + + +{% endblock %} + {% block body %} {{block.super}} @@ -19,7 +45,8 @@ {% for content in content_list %}
  • - {% thumbnail content.image "294x165" format="PNG" crop="center" as im %}{% endthumbnail %} + {% thumbnail content.image "294x165" format="PNG" crop="center" as im %}{% endthumbnail %} + {{ content.stat_annotation }}
    {{ content.nb_annotation }}

    {% if content.title|length > 69 %}{{content.title|slice:":69"}}...{% else %}{{content.title}}{% endif %}

    {% trans 'by' %} IRI | {{content.duration|str_duration:"h"}}

    diff -r 271e8d0e251b -r 2ac316b4d55a src/ldt/ldt/static/ldt/css/front_home.css --- a/src/ldt/ldt/static/ldt/css/front_home.css Thu Jan 12 16:25:13 2012 +0100 +++ b/src/ldt/ldt/static/ldt/css/front_home.css Thu Jan 12 17:52:54 2012 +0100 @@ -21,6 +21,9 @@ .title_ul { list-style: none; } +.graph_annotation { + background: url(./imgs/whitealpha.png); margin:148px -297px; position:absolute; +} /* Plus annotés */ diff -r 271e8d0e251b -r 2ac316b4d55a src/ldt/ldt/static/ldt/css/imgs/whitealpha.png Binary file src/ldt/ldt/static/ldt/css/imgs/whitealpha.png has changed diff -r 271e8d0e251b -r 2ac316b4d55a src/ldt/ldt/static/ldt/img/little_plus.png Binary file src/ldt/ldt/static/ldt/img/little_plus.png has changed