--- a/src/iconolab/templates/iconolab/user_collection_admin.html Wed Nov 09 14:47:56 2016 +0100
+++ b/src/iconolab/templates/iconolab/user_collection_admin.html Mon Nov 14 16:15:05 2016 +0100
@@ -66,6 +66,6 @@
<input class="btn btn-default" type="submit" value="Filtrer"></input>
</form>
<h2><small>Listes des annotations</small></h2>
- {% include "partials/image_annotations_list.html" with annotation_list=collection_filtered_annotations collection_name=collection.name %}
+ {% include "partials/image_annotations_list.html" with annotation_list=collection_filtered_annotations collection_name=collection.name show_links=True %}
</div>
{% endblock %}
\ No newline at end of file
--- a/src/iconolab/templates/partials/image_annotations_list.html Wed Nov 09 14:47:56 2016 +0100
+++ b/src/iconolab/templates/partials/image_annotations_list.html Mon Nov 14 16:15:05 2016 +0100
@@ -19,6 +19,9 @@
<th>Révisée le</th>
<th>Contributeurs</th>
<th>Statistiques</th>
+ {% if show_links %}
+ <th>Liens et données</th>
+ {% endif %}
</thead>
{% for annotation in annotation_list %}
<tr>
@@ -48,6 +51,14 @@
<td>
{% include "partials/annotation_stats_panel.html" with annotation=annotation %}
</td>
+ {% if show_links %}
+ <td>
+ <b>Espace de travail</b><br>
+ <a class="btn btn-primary btn-sm" href="{% url 'annotation_detail' annotation.image.item.collection.name annotation.image.image_guid annotation.annotation_guid %}" target="_blank">Suivre le lien</a><br>
+ <br><b>Etat courant<br>
+ <a class="btn btn-primary btn-sm" href= "{% url 'revision_detail' annotation.image.item.collection.name annotation.image.image_guid annotation.annotation_guid annotation.current_revision.revision_guid %}" target="_blank">Suivre le lien</a><br>
+ </td>
+ {% endif %}
</tr>
{% endfor %}
</table>