# HG changeset patch # User veltr # Date 1327673916 -3600 # Node ID a400c401f78ba58919f6d04f94f7961b55f7de92 # Parent 7810c6775b2ffc7bbbe1cb2caad7f8d6a1a50bb0# Parent c54a7864a22f35cd1c3d69adaf27f4b7c1d3530e Merge with Jacques last revision diff -r c54a7864a22f -r a400c401f78b src/ldt/ldt/ldt_utils/templates/front/front_all_contents.html --- a/src/ldt/ldt/ldt_utils/templates/front/front_all_contents.html Fri Jan 27 14:56:11 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/front/front_all_contents.html Fri Jan 27 15:18:36 2012 +0100 @@ -27,19 +27,19 @@ {% else %}

{% trans 'All medias' %}

{% endif %} {% for content in content_list %} -
  • +
  • {% thumbnail content.image "294x165" format="PNG" crop="center" as im %}{% trans 'open this media' %}{% endthumbnail %}
      -
    • {{content.pol_positive_rate }}%
    • -
    • {{content.pol_negative_rate}}%
    • -
    • 0%
    • -
    • 0%
    • +
    • {{content.pol_negative_rate}}%
    • +
    • {{content.pol_positive_rate}}%
    • +
    • {{content.pol_reference_rate}}%
    • +
    • {{content.pol_question_rate}}%
    - {{ content.stat_annotation }} + {{ content.annotation_volume|list2str }}
    {{ content.nb_annotation }}
    diff -r c54a7864a22f -r a400c401f78b src/ldt/ldt/ldt_utils/templates/front/front_home.html --- a/src/ldt/ldt/ldt_utils/templates/front/front_home.html Fri Jan 27 14:56:11 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/front/front_home.html Fri Jan 27 15:18:36 2012 +0100 @@ -34,17 +34,17 @@ {% for content in last_contents %}
  • - + {% thumbnail content.image "294x165" format="PNG" crop="center" as im %}{% trans 'open this media' %}{% endthumbnail %}
      -
    • {{content.pol_negative_rate}}%
    • -
    • {{content.pol_positive_rate}}%
    • -
    • 0%
    • -
    • 0%
    • +
    • {{content.pol_negative_rate}}%
    • +
    • {{content.pol_positive_rate}}%
    • +
    • {{content.pol_reference_rate}}%
    • +
    • {{content.pol_question_rate}}%
    - {{ content.stat_annotation }} + {{ content.annotation_volume|list2str }}
    {{ content.nb_annotation }}
    @@ -71,10 +71,10 @@ {% thumbnail content.image "134x75" format="PNG" crop="center" as im %}{% trans 'open this media' %}{% endthumbnail %}
    diff -r c54a7864a22f -r a400c401f78b src/ldt/ldt/static/ldt/js/Ldt_front_sparkline.js --- a/src/ldt/ldt/static/ldt/js/Ldt_front_sparkline.js Fri Jan 27 14:56:11 2012 +0100 +++ b/src/ldt/ldt/static/ldt/js/Ldt_front_sparkline.js Fri Jan 27 15:18:36 2012 +0100 @@ -33,4 +33,11 @@ "stroke" : "#808080" }); }); + + $(".polemics li").each(function(_i,_e) { + var _sp = $(_e).find("span"); + if (parseInt(_sp.text())) { + $(_e).css("width",(2 + _sp.width())+"px"); + } + }); }); \ No newline at end of file