Added buttons to download MP3 and Ogg Vorbis files to book_detail pages. Also added...
[wolnelektury.git] / wolnelektury / templates / catalogue / tagged_object_list.html
index 7339114..5bcab78 100644 (file)
@@ -22,6 +22,7 @@
             <div id="description">
                 {{ last_tag.description|safe }}
             </div>
+            <div class="clearboth"></div>
             <div id="toggle-description"><p>Zwiń opis ▲</p></div>
         {% endif %}
         {% if shelf_is_set %}
                 Pobierz wszystkie książki z tej półki
             </a>
         {% endif %}
-        {% endwith %}
         <ol>
         {% for book in object_list %}
-            <li>{{ book.short_html }}</li>
+            <li>
+                {% if user_is_owner %}
+                    <a href="{% url remove_from_shelf last_tag.slug book.slug %}" class="remove-from-shelf">Usuń</a>
+                {% endif %}
+                {{ book.short_html }}</li>
         {% endfor %}
         </ol>
+        {% endwith %}
         {% paginate %}
     </div>
     <div id="tags-list">