X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/aff5def884b3e0aeaafd7de454b68b4daa2c4f3d..938fc832934e508085dad3645c01060a4dc9f0c9:/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 230d8ed34..7c33a3740 100644 --- a/wolnelektury/templates/catalogue/tagged_object_list.html +++ b/wolnelektury/templates/catalogue/tagged_object_list.html @@ -1,70 +1,135 @@ {% extends "base.html" %} {% load i18n %} -{% load catalogue_tags pagination_tags %} +{% load catalogue_tags pagination_tags switch_tag %} -{% block title %}{% title_from_tags tags %} w WolneLektury.pl{% endblock %} +{% block titleextra %}{% title_from_tags tags %}{% endblock %} {% block bodyid %}tagged-object-list{% endblock %} {% block body %} +
+

{% title_from_tags tags %}

- {% breadcrumbs tags %} - - {% if shelf_is_set 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 }} + + {% if categories.theme %} +
+

{% trans "Motifs and themes" %}

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

{% trans "Toggle description" %} ▲

- {% endif %} - {% if shelf_is_set %} - - {% trans "Download all books from this shelf" %} - - + {% endif %} + +
+
+ + + + +
+ + + + + {% autopaginate object_list 10 %} +
+ + {% if last_tag.gazeta_link %}

- {% ifequal last_tag.category "author" %} - {% trans "Read work's study of this author on Lektury.Gazeta.pl" %} - {% endifequal %} - {% ifequal last_tag.category "epoch" %} - {% trans "Read study of epoch" %} {{ last_tag }} {% trans "on Lektury.Gazeta.pl" %} - {% endifequal %} + {% switch last_tag.category %} + {% case "author" %} + {% trans "Read work's study of this author on Lektury.Gazeta.pl" %} + {% case "epoch" %} + {% blocktrans %}Read study of epoch {{ last_tag }} on Lektury.Gazeta.pl{% endblocktrans %} + {% case "kind" %} + {% blocktrans %}Read study of kind {{ last_tag }} on Lektury.Gazeta.pl{% endblocktrans %} + {% case "genre" %} + {% blocktrans %}Read study of genre {{ last_tag }} on Lektury.Gazeta.pl{% endblocktrans %} + {% else %} + {% trans "Read related study on Lektury.Gazeta.pl" %} + {% endswitch %}

{% endif %} {% if last_tag.wiki_link %}

- {% ifequal last_tag.category "author" %} - {% trans "Read article about this author on Wikipedia" %} - {% endifequal %} - {% ifequal last_tag.category "epoch" %} - {% trans "Read article about epoch" %} {{ last_tag }} {% trans "on Wikipedia" %} - {% endifequal %} + {% switch last_tag.category %} + {% case "author" %} + {% trans "Read article about this author on Wikipedia" %} + {% case "epoch" %} + {% blocktrans %}Read article about epoch {{ last_tag }} on Wikipedia{% endblocktrans %} + {% case "kind" %} + {% blocktrans %}Read article about kind {{ last_tag }} on Wikipedia{% endblocktrans %} + {% case "genre" %} + {% blocktrans %}Read article about genre {{ last_tag }} on Wikipedia{% endblocktrans %} + {% else %} + {% trans "Read related article on Wikipedia" %} + {% endswitch %}

{% endif %} {% if object_list %} + {% spaceless %}
    {% for book in object_list %}
  1. @@ -74,63 +139,15 @@ {{ book.short_html }}
  2. {% endfor %}
+ {% endspaceless %} + {% paginate %} {% else %} - {% if only_author %} - {% if last_tag.alive %} - {% trans "This author's works are copyrighted." %} - {% else %}{% comment %} Is dead {% endcomment %} - {% if last_tag.in_pd %} - {% trans "This author's works are in public domain and will be published on Internet school library of Wolne Lektury soon." %} - {% else %}{% comment %} Is dead, but not yet in public domain {% endcomment %} -
-

{% trans "This author's works will become part of public domain and will be allowed to be published without restrictions in:" %}

- {% include "catalogue/pd_counter.html" %} -
- {% endif %} - {% endif %} - {% else %} - {% trans "No works of this author found." %} - {% endif %} + {% trans "Sorry! Search cirteria did not match any resources." %} {% include "info/join_us.html" %} {% endif %} {% endwith %} - {% paginate %}
{% 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 categories.theme %} -

{% trans "Themes" %}

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

* {% trans "Loading" %}

-
-
-{% endblock %} \ No newline at end of file +{% endblock %}