equal
deleted
inserted
replaced
11 </div> |
11 </div> |
12 </a> |
12 </a> |
13 <div class="content"> |
13 <div class="content"> |
14 <a href="{% url 'view_fragment' fragment_pk=frg.pk %}"><h3>{{ frg.highlighted.title|first|safe|default:frg.title }}</h3></a> |
14 <a href="{% url 'view_fragment' fragment_pk=frg.pk %}"><h3>{{ frg.highlighted.title|first|safe|default:frg.title }}</h3></a> |
15 <p>{% trans "Fragment from" %} <a href="{% url 'annotate_picture' image_id=fragment.image.id %}">{{ fragment.image.metadata.titre|default:_("No title") }}</a> |
15 <p>{% trans "Fragment from" %} <a href="{% url 'annotate_picture' image_id=fragment.image.id %}">{{ fragment.image.metadata.titre|default:_("No title") }}</a> |
16 <br/>{% trans "Annotated by" %} <strong><a href="{% url 'user_fragments' username=frg.author %}">{{ frg.author }}</a></strong></p> |
16 <br/>{% trans "Annotated by" %} <a href="{% url 'user_fragments' username=frg.author %}"><strong>{{ frg.author }}</strong></a></p> |
17 </div> |
17 </div> |
18 <div class="tools-2"> |
18 <div class="tools-2"> |
19 <ul class="clearfix"> |
19 <ul class="clearfix"> |
20 <li><a class="tool twitter" href="#" title="{% trans 'Share on Twitter'%}"></a></li> |
20 <li><a class="tool twitter" href="#" title="{% trans 'Share on Twitter'%}"></a></li> |
21 <li><a class="tool facebook" href="#" title="{% trans 'Share on Facebook'%}"></a></li> |
21 <li><a class="tool facebook" href="#" title="{% trans 'Share on Facebook'%}"></a></li> |
22 <li><a class="tool plus" href="#" title="+"></a></li> |
22 <li><a class="tool plus" href="#" title="+"></a></li> |
23 <li><a class="tool cut" href="{% url 'create_fragment' image_id=fragment.image.id %}" title="{% trans 'Create a fragment'%}"></a></li> |
23 <li><a class="tool cut" href="{% url 'create_fragment' image_id=fragment.image.id %}" title="{% trans 'Create a fragment'%}"></a></li> |
|
24 {% if user_fragments and username = user.username %} |
|
25 <li><a class="tool trash" href="{% url 'delete_fragment' %}?fragment_pk={{ frg.pk }}&next={% url 'user_fragments' user.username %}%3Fpage%3D{{ cur_page_nb }}" onclick="return confirm('{% trans "Do you really want to delete this fragment ? Warning : this action est irreversible." %}')" title="{% trans "Delete this fragment" %}"></a></li> |
|
26 {% endif %} |
24 </ul> |
27 </ul> |
25 </div> |
28 </div> |
26 {# en attendant la poubelle #} |
|
27 {% if user_fragments and username = user.username %}<a href="{% url 'delete_fragment' %}?fragment_pk={{ frg.pk }}&next={% url 'user_fragments' user.username %}%3Fpage%3D{{ cur_page_nb }}" onclick="return confirm('{% trans "Do you really want to delete this fragment ? Warning : this action est irreversible." %}')" title="{% trans "Delete this fragment" %}"><div class="top_right_options"></div></a>{% endif %} |
|
28 {% endwith %} |
29 {% endwith %} |