equal
deleted
inserted
replaced
29 <li> |
29 <li> |
30 <a class="icon cut" href="{% url 'create_fragment' image_id=fragment.image.id %}">{% trans "Create a fragment" %}</a> |
30 <a class="icon cut" href="{% url 'create_fragment' image_id=fragment.image.id %}">{% trans "Create a fragment" %}</a> |
31 </li> |
31 </li> |
32 <li> |
32 <li> |
33 {% if user.is_authenticated %} |
33 {% if user.is_authenticated %} |
34 <a class="icon plus open-popin" href="#add-to-collection">{% trans "Add to a collection" %}</a> |
34 <a class="icon plus open-popin additemtocollection" data-type="fragment" data-id="{{ fragment.pk }}" href="#add-to-collection">{% trans "Add to a collection" %}</a> |
35 {% else %} |
35 {% else %} |
36 <a class="icon plus" href="{% url 'login' %}?next={% url 'view_fragment' fragment_pk=fragment.pk %}">{% trans "Add to a collection" %}</a> |
36 <a class="icon plus" href="{% url 'login' %}?next={% url 'view_fragment' fragment_pk=fragment.pk %}">{% trans "Add to a collection" %}</a> |
37 {% endif %} |
37 {% endif %} |
38 </li> |
38 </li> |
39 <!--li> |
39 <!--li> |
40 <a class="icon save" href="#">Enregistrer sous</a> |
40 <a class="icon save" href="#">Enregistrer sous</a> |
41 </li> |
|
42 <li> |
|
43 <a class="icon plus open-popin" href="#add-to-collection">Ajouter à ma collection</a> |
|
44 </li> |
41 </li> |
45 <li> |
42 <li> |
46 <form action="#"> |
43 <form action="#"> |
47 <p> |
44 <p> |
48 <input class="search-form" id="id_search" type="text" placeholder="Romantisme noir"> |
45 <input class="search-form" id="id_search" type="text" placeholder="Romantisme noir"> |