X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0e411544dd2afaafb14b0ee5a66698741915760c..8fefd8bdaca07a3f5607de79c081dc0f7876fbc7:/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 7d3642fa6..c7898d56c 100644 --- a/wolnelektury/templates/catalogue/tagged_object_list.html +++ b/wolnelektury/templates/catalogue/tagged_object_list.html @@ -1,6 +1,6 @@ {% extends "base.html" %} {% load i18n %} -{% load catalogue_tags pagination_tags switch_tag %} +{% load catalogue_tags switch_tag social_tags %} {% block titleextra %}{% title_from_tags tags %}{% endblock %} @@ -9,46 +9,57 @@ {% block body %}
-

{% title_from_tags tags %}

+

{% html_title_from_tags tags %}

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

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

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

+
+
{% trans "Authors" %}:
+
+ {% inline_tag_list categories.author tags %} +
+
{% endif %} {% if categories.kind %} -

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

+
+
{% trans "Kinds" %}:
+
+ {% inline_tag_list categories.kind tags %} +
+
{% endif %} {% if categories.genre %} -

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

+
+
{% trans "Genres" %}:
+
+ {% inline_tag_list categories.genre tags %} +
+
{% endif %} {% if categories.epoch %} -

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

+
+
{% trans "Epochs" %}:
+
+ {% inline_tag_list categories.epoch tags %} +
+
{% endif %}
{% if categories.theme %} -
-

{% trans "Motifs and themes" %}

-
+
+

+ {% trans "Motifs and themes" %}

+
{% tag_list categories.theme tags %}
@@ -59,30 +70,42 @@
- -
- Dobranoc, obróć jeszcze raz na mnie oczęta,
- (…) Daj mi pierś ucałować
- Dobranoc, zapięta. -
-

Adam Mickiewicz, Dziady część III

-
+ {% if theme_is_set %} + {% work_list object_list %} + {% else %} + {% cite_promo tags 1 %}
+ {% if last_tag.gazeta_link or last_tag.wiki_link %}

{% trans "See also" %}:

+ {% endif %}
+ {% comment %}

{% trans "Download" %}:

+ {% endcomment %}
+ {% endif %}
@@ -90,64 +113,15 @@ - - {% autopaginate object_list 10 %} + {% if not theme_is_set %}
- - - {% if last_tag.gazeta_link %} -

- {% 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 %} -

- {% 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. - {% 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 %} - {% endif %} + {% endif %} + {% endwith %} {% endblock %}