diff -r 9cc447bd5280 -r cfd40849d24c src/iconolab_mcc/templates/iconolab/home.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/iconolab_mcc/templates/iconolab/home.html Tue Jun 12 13:11:49 2018 +0200 @@ -0,0 +1,139 @@ +{% extends 'iconolab_base.html' %} + +{% load i18n %} +{% load staticfiles %} +{% load thumbnail %} +{% load iconolab_tags %} +{% load humanize %} + +{% block content %} +
+ +
+
+

Les collections

+
+
+
+ + {% for collection in collections_primary %} +
+
+ {% thumbnail collection.image "450x250" crop="center" as im %} +
+ + + +
+

{{collection.verbose_name}}

+
+
+ {{ collection.completed_percent }}% +
+
+ + Contribuer + +
+

{{collection.description|safe}}

+ {% endthumbnail %} +
+
+ {% endfor %} +
+
+
+

Les dernières annotations

+ {% for annotation in latest_annotations %} +
+
+ +
+
+
+ {% thumbnail annotation.image.media "100x100" crop=False as im %} + + + + + + + + + {% endthumbnail %} +
+
+
+ +

+ {{ annotation.current_revision.title }} + {{ annotation.current_revision.created|naturaltime }} +

+

+ {% for contributor in annotation.stats.contributors.all %} + {{ contributor.username }} + {% endfor %} +

+

{{ annotation.current_revision.description }}

+

+ {% for tagging_info in annotation.current_revision.tagginginfo_set.all %} +  {{ tagging_info.tag.label }} + {% endfor %} +

+
+
+
+
+ {% endfor %} +
+
+

Les meilleurs contributeurs

+ + +

Les mots-clé les plus pertinents

+ + +
+
+ {% for collection in collections_secondary %} +
+
+
+ {% thumbnail collection.image "350x350" crop=False as im %} + + {% endthumbnail %} +
+
+

{{ collection.verbose_name }}

+

+ {{collection.description | safe}} +

+ Contribuer +
+
+
+ {% endfor %} +
+{% endblock %}