--- a/src/ldt/ldt/ldt_utils/templates/front/front_all_contents.html Fri Jan 13 11:04:54 2012 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/front/front_all_contents.html Fri Jan 13 12:42:07 2012 +0100
@@ -33,7 +33,7 @@
_nb = _values.length,
_max = _values.reduce(function(_a,_b) {
return Math.max(_a,_b);
- }, 0),
+ }, 1),
_x = function(_p) {
return _p * _width / _nb;
},
@@ -70,7 +70,7 @@
{% for content in content_list %}
<li class="li_media">
<a href="{% url ldt.ldt_utils.views.front.annot_content content.iri_id %}">{% thumbnail content.image "294x165" format="PNG" crop="center" as im %}<img src="{{ im.url }}" class="img_media" width="{{ im.width }}" height="{{ im.height }}">{% endthumbnail %}
- <span class="graph_annotation">{{ content.stat_annotation }}</span></a>
+ <span class="graph_annotation"></span></a>
<div class="bulle_annot">{{ content.nb_annotation }}</div>
<p><a href="{% url ldt.ldt_utils.views.front.annot_content content.iri_id %}"><b>{% if content.title|length > 69 %}{{content.title|slice:":69"}}...{% else %}{{content.title}}{% endif %}</b></a></p>
<p>{% trans 'by' %} IRI | {{content.duration|str_duration:"h"}}</p>
--- a/src/ldt/ldt/ldt_utils/templates/front/front_search_results.html Fri Jan 13 11:04:54 2012 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/front/front_search_results.html Fri Jan 13 12:42:07 2012 +0100
@@ -51,7 +51,7 @@
_nb = _values.length,
_max = _values.reduce(function(_a,_b) {
return Math.max(_a,_b);
- }, 0),
+ }, 1),
_x = function(_p) {
return _p * _width / _nb;
},