# HG changeset patch # User veltr # Date 1327510521 -3600 # Node ID 29f990eb014488f105d54164324c7faa4a271119 # Parent 57db78aa084fffa0e6b37ac9844f16367a7c760c Added color bars on 'most annotated media' diff -r 57db78aa084f -r 29f990eb0144 crea/inte-crea/css/ldt-commun.css --- a/crea/inte-crea/css/ldt-commun.css Wed Jan 25 14:58:21 2012 +0100 +++ b/crea/inte-crea/css/ldt-commun.css Wed Jan 25 17:55:21 2012 +0100 @@ -117,6 +117,36 @@ margin: 10px; } +.img_and_polemic { + float: left; position: relative; +} + +.polemics { + position: absolute; bottom: 5px; list-style: none; z-index: 2; + width: 95%; font-size: 9px; color: #ffffff; +} + +.polemics li { + text-align: left; overflow: hidden; padding: 0 0 0 3px; margin: 2px 0; clear: both; + width: 100%; box-shadow: 2px 2px 2px #000000; +} + +.pol-positive { + background: #00a000; +} + +.pol-negative { + background: #ff0000; +} + +.pol-reference { + background: #e0e000; color: #000000; +} + +.pol-question { + background: #0040ff; +} + .img_media { background: #000000; border: 2px solid #ffffff; padding: 1px; } diff -r 57db78aa084f -r 29f990eb0144 crea/inte-crea/home.html --- a/crea/inte-crea/home.html Wed Jan 25 14:58:21 2012 +0100 +++ b/crea/inte-crea/home.html Wed Jan 25 17:55:21 2012 +0100 @@ -68,7 +68,13 @@

Médias les plus annotés

  • - + +
    120

    Lorem Ipsum

    par Ars Industrialis | 1h30

    diff -r 57db78aa084f -r 29f990eb0144 src/ldt/ldt/ldt_utils/templates/front/front_home.html --- a/src/ldt/ldt/ldt_utils/templates/front/front_home.html Wed Jan 25 14:58:21 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/front/front_home.html Wed Jan 25 17:55:21 2012 +0100 @@ -46,7 +46,15 @@
  • {% for content in most_contents %}
  • - {% thumbnail content.image "134x75" format="PNG" crop="center" as im %}{% trans 'open this media' %}{% endthumbnail %} + + {% thumbnail content.image "134x75" format="PNG" crop="center" as im %}{% trans 'open this media' %}{% endthumbnail %} + +
    {{ 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 57db78aa084f -r 29f990eb0144 src/ldt/ldt/static/ldt/css/front_common.css --- a/src/ldt/ldt/static/ldt/css/front_common.css Wed Jan 25 14:58:21 2012 +0100 +++ b/src/ldt/ldt/static/ldt/css/front_common.css Wed Jan 25 17:55:21 2012 +0100 @@ -132,6 +132,35 @@ .img_media { background: #000000; border: 2px solid #ffffff; padding: 1px; } +.img_and_polemic { + float: left; position: relative; +} + +.polemics { + position: absolute; bottom: 8px; list-style: none; z-index: 2; + width: 95%; font-size: 9px; color: #ffffff; +} + +.polemics li { + text-align: left; overflow: hidden; padding: 0 0 0 3px; margin: 2px 0; clear: both; + width: 100%; box-shadow: 2px 2px 2px #000000; +} + +.pol-positive { + background: #00a000; +} + +.pol-negative { + background: #ff0000; +} + +.pol-reference { + background: #e0e000; color: #000000; +} + +.pol-question { + background: #0040ff; +} .under, a.under { text-decoration: underline;