--- a/src/iconolab/templates/iconolab/detail_annotation.html Thu Aug 18 16:41:55 2016 +0200
+++ b/src/iconolab/templates/iconolab/detail_annotation.html Thu Aug 18 17:18:16 2016 +0200
@@ -32,7 +32,7 @@
</div>
<div v-show="!showZoom" id="detail-annotation" class='col-md-6' style="">
- <h4>Annotation créée par {{ annotation.author.username }}</h4>
+ <h4>Annotation créée par <a href="{% url 'user_home' annotation.author.id %}">{{ annotation.author.username }}</a></h4>
<p><strong>Titre:</strong> {{ annotation.current_revision.title }}</p>
<p><strong>Description:</strong> {{ annotation.current_revision.description }}</p>
{% if tags_data != "[]" %}
@@ -82,7 +82,7 @@
<p id="c{{comment.id}}-content" class="comment-content">{{ comment.comment }}</p>
<hr class="comment-separator">
{% if comment.allow_thread and user.is_authenticated %}<div class="pull-right"><a class="btn btn-default btn-xs reply-to-btn" id="reply-to-{{comment.id}}" class="comment-reply-link">Répondre</a></div>{% endif %}
- <div id="c{{comment.id}}-subtext" class="comment-subtext">{{ comment.submit_date|date:"d/m/Y" }} à {{ comment.submit_date|time:"H:i" }} - <b>{{ comment.name }}</b></div>
+ <div id="c{{comment.id}}-subtext" class="comment-subtext">{{ comment.submit_date|date:"d/m/Y" }} à {{ comment.submit_date|time:"H:i" }} - <b><a href="{% url 'user_home' comment.user.id %}">{{comment.name}}</a></b></div>
<div id="c{{comment.id}}-label-list" class="comment-metacategories">
{% if comment.revision or comment.metacategories.count > 0 %} - {% endif %}
{% if comment.revision %}
--- a/src/iconolab/templates/partials/image_annotations_list.html Thu Aug 18 16:41:55 2016 +0200
+++ b/src/iconolab/templates/partials/image_annotations_list.html Thu Aug 18 17:18:16 2016 +0200
@@ -37,12 +37,12 @@
</div>
</td>
<td>{{ annotation.current_revision.title }}</td>
- <td>{{ annotation.author }}</td>
+ <td><a href="{% url 'user_home' annotation.author.id %}" style="color:#000000">{{ annotation.author }}</a></td>
<td>{{ annotation.created|date:'d-m-Y' }}</td>
<td>{{ annotation.current_revision.created|date:'d-m-Y' }}</td>
<td>
{% for contributor in annotation.stats.contributors.all %}
- {{ contributor.username }}{% if not forloop.last %}, {% endif %}
+ <a href="{% url 'user_home' contributor.id %}" style="color:#000000">{{ contributor.username }}</a>{% if not forloop.last %}, {% endif %}
{% endfor %}
</td>
<td>