X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1ca64302e8447c9715ab42dd1a33075f312e6059..ddf2102eff7ea420a4ea5144c43409587fc1156e:/src/catalogue/templates/catalogue/tagged_object_list.html?ds=sidebyside diff --git a/src/catalogue/templates/catalogue/tagged_object_list.html b/src/catalogue/templates/catalogue/tagged_object_list.html index 9af03f51e..22554d66a 100644 --- a/src/catalogue/templates/catalogue/tagged_object_list.html +++ b/src/catalogue/templates/catalogue/tagged_object_list.html @@ -1,125 +1,102 @@ -{% extends "base.html" %} +{% extends "base/base.html" %} {% load i18n %} -{% load catalogue_tags switch_tag social_tags %} -{% load ssi_include from ssify %} +{% load catalogue_tags social_tags %} + +{% block titleextra %}{% if tags %}{% title_from_tags tags %}{% elif list_type == 'gallery' %}{% trans "Art" %}{% elif list_type == 'audiobooks' %}{% trans "Audiobooks" %}{% else %}{% trans "Literature" %}{% endif %}{% endblock %} -{% block titleextra %}{% if tags %}{% title_from_tags tags %}{% elif list_type == 'gallery' %}{% trans "Gallery" %}{% elif list_type == 'audiobooks' %}{% trans "Audiobooks" %}{% else %}{% trans "Literature" %}{% endif %}{% endblock %} {% block bodyid %}tagged-object-list{% endblock %} {% block body %} -
+

{% if tags %}{% html_title_from_tags tags %}{% endif %}

-
+
-
+
- {% inline_tag_list categories.author tags 'author' list_type=list_type %} + {% inline_tag_list categories.author tags 'author' list_type=list_type %}
- {% inline_tag_list categories.epoch tags 'epoch' list_type=list_type %} + {% inline_tag_list categories.epoch tags 'epoch' list_type=list_type %}
- {% inline_tag_list categories.genre tags 'genre' list_type=list_type %} + {% inline_tag_list categories.genre tags 'genre' list_type=list_type %}
- {% inline_tag_list categories.kind tags 'kind' list_type=list_type %} + {% inline_tag_list categories.kind tags 'kind' list_type=list_type %}
{% if theme_is_set %} -
- {% inline_tag_list categories.theme tags 'theme' list_type=list_type %} -
+
+ {% inline_tag_list categories.theme tags 'theme' list_type=list_type %} +
{% endif %} -
+
-{% if list_type == 'books' and not tags %} -
-

{% trans "Recent publications" %}

- {% for book in last_published %} - {% ssi_include 'catalogue_book_mini' pk=book.pk %} - {% endfor %} - {% trans "More recent publications" %} -
-
-

{% trans "Most popular books" %}

- {% for book in most_popular %} - {% ssi_include 'catalogue_book_mini' pk=book.pk %} - {% endfor %} -
-{% endif %} - -{% if theme_is_set %} + {% if theme_is_set %} {% work_list object_list %} -{% else %} + {% else %}
- {% if object_list %} - {% work_list best %} - {% if tags %} -

{% trans "All matching works" %}

- {% else %} - {% if list_type == 'audiobooks' %} -

{% trans "Listing of all audiobooks" %}

- {% else %} -

{% trans "All works" %}

- {% endif %} - {% endif %} - {% plain_list object_list by_author=True list_type=list_type %} - {% if daisy %} -

{% trans "DAISY files" %}

- {% plain_list daisy by_author=True %} - {% endif %} + {% if object_list %} + {% work_list best %} + {% if tags %} +

{% trans "All matching works" %}

{% else %} - {% trans "Sorry! Search cirteria did not match any resources." %} - {% include "info/join_us.html" %} + {% if list_type == 'audiobooks' %} +

{% trans "Listing of all audiobooks" %}

+ {% else %} +

{% trans "All works" %}

+ {% endif %} + {% endif %} + {% plain_list object_list by_author=True list_type=list_type %} + {% if daisy %} +

{% trans "DAISY files" %}

+ {% plain_list daisy by_author=True %} {% endif %} + {% else %} + {% trans "Sorry! Search cirteria did not match any resources." %} + {% include "info/join_us.html" %} + {% endif %}
{% if categories.theme and list_type != 'audiobooks' %} -

{% trans "Motifs and themes" %}

- {% plain_list categories.theme choice=tags list_type=list_type %} +

{% trans "Motifs and themes" %}

+ {% plain_list categories.theme choice=tags list_type=list_type %} {% endif %} + {% endif %} -{% endif %} - -{% for tag in tags %} + {% for tag in tags %} {% if tag.category != 'set' %} -

{% trans tag.category as c %}{{ c|capfirst }}: {{ tag }}

-
- {% if tag.has_description %} - {{ tag.description|safe }} - {% else %} - {% trans "No description." %} - {% endif %} -
- - {% if tag.gazeta_link %} -
- {{ tag }} {% trans "in Lektury.Gazeta.pl" %} -
- {% endif %} - {% if tag.wiki_link %} -
- - {{ tag }} {% trans "in Wikipedia" %} -
- {% endif %} - {% if tag.culturepl_link %} -
- - {{ tag }} {% trans "in Culture.pl" %} -
+

{% trans tag.category as c %}{{ c|capfirst }}: {{ tag }}

+
+ {% if tag.has_description %} + {{ tag.description|safe }} + {% else %} + {% trans "No description." %} {% endif %} - {% endif %} -{% endfor %} +
+ {% if tag.wiki_link %} +
+ + {{ tag }} {% trans "in Wikipedia" %} +
+ {% endif %} + {% if tag.culturepl_link %} +
+ + {{ tag }} {% trans "in Culture.pl" %} +
+ {% endif %} + {% endif %} + {% endfor %} {% endblock %}