X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7cf1f5926f871122e6e240432531ae942c4f9df1..3badd77f743883992829a1174eef7c8d5e851766:/wolnelektury/templates/catalogue/tagged_object_list.html diff --git a/wolnelektury/templates/catalogue/tagged_object_list.html b/wolnelektury/templates/catalogue/tagged_object_list.html index 7cae9ebed..21aef82ce 100644 --- a/wolnelektury/templates/catalogue/tagged_object_list.html +++ b/wolnelektury/templates/catalogue/tagged_object_list.html @@ -1,59 +1,99 @@ {% extends "base.html" %} {% load i18n %} -{% load catalogue_tags pagination_tags switch_tag %} +{% load catalogue_tags switch_tag %} {% block titleextra %}{% title_from_tags tags %}{% endblock %} {% block bodyid %}tagged-object-list{% endblock %} {% block body %} +
+

{% title_from_tags tags %}

- {% if only_shelf and not object_list %} -
-

{% trans "Your shelf is empty" %}

-

{% trans "You can put a book on a shelf by entering page of the reading and clicking 'Put on the shelf'." %}

+ {% with tags|last as last_tag %} + {% if last_tag.has_description %} +
+
{{ last_tag.description|safe }}
+
{{ last_tag.description|safe|truncatewords_html:30 }}
+
+
+

+ {% endif %} + + +
+ {% if categories.author %} +

{% trans "Authors" %}: + {% inline_tag_list categories.author tags %} +

+ {% endif %} + {% if categories.kind %} +

{% trans "Kinds" %}: + {% inline_tag_list categories.kind tags %} +

+ {% endif %} + {% if categories.genre %} +

{% trans "Genres" %}: + {% inline_tag_list categories.genre tags %} +

+ {% endif %} + {% if categories.epoch %} +

{% trans "Epochs" %}: + {% inline_tag_list categories.epoch tags %} +

+ {% endif %}
- {% else %} - {% autopaginate object_list 10 %} -
- {% with tags|last as last_tag %} - {% if last_tag.has_description %} -
-
{{ last_tag.description|safe }}
-
{{ last_tag.description|safe|truncatewords_html:30 }}
-
-
-

- {% endif %} - {% if only_shelf %} - - {% trans "Download all books from this shelf" %} - - + + + + +
+ + + + +
+ + {% if last_tag.gazeta_link %}

{% switch last_tag.category %} @@ -88,62 +128,11 @@ {% endif %} {% if object_list %} - {% spaceless %} -

    - {% for book in object_list %} -
  1. - {% if user_is_owner %} - {% trans "Delete" %} - {% endif %} - {{ book.short_html }}
  2. - {% endfor %} -
- {% endspaceless %} - {% paginate %} + {% work_list object_list %} {% else %} {% trans "Sorry! Search cirteria did not match any resources." %} {% include "info/join_us.html" %} {% endif %} {% endwith %}
- {% if object_list %} - {% comment %} If we didn't find anything there will be nothing on the right side as well {% endcomment %} -
-
- {% if categories.author %} -

{% trans "Authors" %}

- {% tag_list categories.author tags %} - {% endif %} - {% if categories.kind %} -

{% trans "Kinds" %}

- {% tag_list categories.kind tags %} - {% endif %} - {% if categories.genre %} -

{% trans "Genres" %}

- {% tag_list categories.genre tags %} - {% endif %} - {% if categories.epoch %} -

{% trans "Epochs" %}

- {% tag_list categories.epoch tags %} - {% endif %} - {% if only_shelf %} -

Miksuj utwory z tej półki - {% endif %} -

-
- {% if categories.theme %} -

{% trans "Themes" %}

- {% tag_list categories.theme tags %} - {% endif %} -
-
-
- {% endif %} - {% endif %} -
- -
-

* {% trans "Loading" %}

-
-
{% endblock %}