fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added counts to book_sets.html and user_shelves.html templates.
[wolnelektury.git]
/
wolnelektury
/
templates
/
catalogue
/
main_page.html
diff --git
a/wolnelektury/templates/catalogue/main_page.html
b/wolnelektury/templates/catalogue/main_page.html
index
107d27d
..
daa7ce8
100644
(file)
--- a/
wolnelektury/templates/catalogue/main_page.html
+++ b/
wolnelektury/templates/catalogue/main_page.html
@@
-20,7
+20,7
@@
{% if shelves %}
<ul class="shelf-list">
{% for shelf in shelves %}
{% if shelves %}
<ul class="shelf-list">
{% for shelf in shelves %}
- <li><a href="{% url delete_shelf shelf.slug %}" class="delete-shelf">usuń</a> <a href="{{ shelf.get_absolute_url }}" class="visit-shelf">{{ shelf.name }}</a></li>
+ <li><a href="{% url delete_shelf shelf.slug %}" class="delete-shelf">usuń</a> <a href="{{ shelf.get_absolute_url }}" class="visit-shelf">{{ shelf.name }}
({{ shelf.book_count }})
</a></li>
{% endfor %}
</ul>
{% else %}
{% endfor %}
</ul>
{% else %}