X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..ddf2102eff7ea420a4ea5144c43409587fc1156e:/src/catalogue/templates/catalogue/tagged_object_list.html diff --git a/src/catalogue/templates/catalogue/tagged_object_list.html b/src/catalogue/templates/catalogue/tagged_object_list.html index 9a3455d26..22554d66a 100644 --- a/src/catalogue/templates/catalogue/tagged_object_list.html +++ b/src/catalogue/templates/catalogue/tagged_object_list.html @@ -1,119 +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 gallery %}{% trans "Gallery" %}{% else %}{% trans "Literature" %}{% endif %}{% endblock %} {% block bodyid %}tagged-object-list{% endblock %} {% block body %} -
-

{% if tags %} - {% html_title_from_tags tags %} - {% elif gallery %}{% trans "Gallery" %}{% else %}{% trans "Literature" %} - {% endif %} -

+
+

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

+
-
-
+
- {% inline_tag_list categories.author tags 'author' gallery=gallery %} + {% inline_tag_list categories.author tags 'author' list_type=list_type %}
- {% inline_tag_list categories.epoch tags 'epoch' gallery=gallery %} + {% inline_tag_list categories.epoch tags 'epoch' list_type=list_type %}
- {% inline_tag_list categories.genre tags 'genre' gallery=gallery %} + {% inline_tag_list categories.genre tags 'genre' list_type=list_type %}
- {% inline_tag_list categories.kind tags 'kind' gallery=gallery %} + {% inline_tag_list categories.kind tags 'kind' list_type=list_type %}
{% if theme_is_set %} -
- {% inline_tag_list categories.theme tags 'theme' gallery=gallery %} -
+
+ {% inline_tag_list categories.theme tags 'theme' list_type=list_type %} +
{% endif %} -
- +
- - - {% if theme_is_set %} - {% work_list object_list %} - {% else %} + {% if theme_is_set %} + {% work_list object_list %} + {% else %}
- {% if object_list %} - {% work_list best %} - {% if tags %} -

{% trans "All matching works" %}

- {% else %} -

{% trans "All works" %}

- {% endif %} - {% plain_list object_list by_author=True gallery=gallery %} + {% 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 %} + {% endif %} + {% endif %} - - -{% if categories.theme %} -

{% trans "Motifs and themes" %}

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

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

-
+

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

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