{% if profile_user == request.user %}Mes annotations:{% else %}Annotations de {{profile_user.username}}{% endif %}
-
+
{% if not user_annotations %}
- Aucune annotation à afficher
+
Aucune annotation à afficher
+ {% else %}
+
+ {% for annotation in user_annotations.all %}
+ {% include "partials/user_page_annotation_panel.html" with annotation=annotation %}
+ {% endfor %}
+
{% endif %}
- {% for annotation in user_annotations.all %}
-
-
-
{{annotation.current_revision.title}}
-
- {% thumbnail annotation.image.media "150x150" crop=False as im %}
-
-
-
-
- {% endthumbnail %}
-
-
-
-
Commentaires:
-
{{annotation.stats.comments_count}}
-
Révisions en attente:
-
{{annotation.stats.awaiting_revisions_count}}
-
-
-
-
- {% endfor %}
-
{% if profile_user == request.user %}Mes autres contributions:{% else %}Contributions de {{profile_user.username}}{% endif %}
-
- {% if profile_user == request.user %}
- Annotations sur lesquelles j'ai commenté:
- {% else %}
- Annotations sur lesquelles {{profile_user.username}} a commenté:
- {% endif %}
-
-
{{user_comments_annotations.all}}
-
+
{% if profile_user == request.user %}
Annotations sur lesquelles j'ai proposé des révisions
{% else %}
Annotations sur lesquelles {{profile_user.username}} a proposé des révisions:
{% endif %}
-
{{user_revisions_annotations.all}}
+
+ {% if not user_revisions_annotations %}
+
Aucune annotation à afficher
+ {% else %}
+
+ {% for annotation in user_revisions_annotations.all %}
+ {% include "partials/user_page_annotation_panel.html" with annotation=annotation %}
+ {% endfor %}
+
+ {% endif %}
+
+
+ {% if profile_user == request.user %}
+ Annotations sur lesquelles j'ai commenté (sans proposer de révision):
+ {% else %}
+ Annotations sur lesquelles {{profile_user.username}} a commenté (sans proposer de révision):
+ {% endif %}
+
+
+ {% if not user_comments_annotations %}
+
Aucune annotation à afficher
+ {% else %}
+
+ {% for annotation in user_comments_annotations.all %}
+ {% include "partials/user_page_annotation_panel.html" with annotation=annotation %}
+ {% endfor %}
+
+ {% endif %}
+
diff -r b5aa7e6f6a01 -r 270d165cd0d5 src/iconolab/templates/partials/header.html
--- a/src/iconolab/templates/partials/header.html Tue Aug 16 11:01:35 2016 +0200
+++ b/src/iconolab/templates/partials/header.html Tue Aug 16 14:50:28 2016 +0200
@@ -22,7 +22,7 @@
{% if request.user.is_authenticated %}
{% notifications_unread as unread_count %}