X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/56cde931d184d61118503fe2e158c39c90c4fd69..e92d6a9a4b4f3a29797f2f47e99787dce0ab525e:/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 b842cb44a..07fda03ad 100644 --- a/wolnelektury/templates/catalogue/tagged_object_list.html +++ b/wolnelektury/templates/catalogue/tagged_object_list.html @@ -1,60 +1,21 @@ {% extends "base.html" %} -{% load catalogue_tags pagination_tags %} +{% load i18n %} +{% load catalogue_tags pagination_tags switch_tag %} {% block title %}{% title_from_tags tags %} w WolneLektury.pl{% endblock %} {% block bodyid %}tagged-object-list{% endblock %} -{% block extrahead %} - -{% 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'." %}

+
+ {% else %} {% autopaginate object_list 10 %}
{% with tags|last as last_tag %} @@ -62,75 +23,137 @@
{{ last_tag.description|safe }}
-

Zwiń opis ▲

+
+

{% trans "Hide description" %} ▲

+ {% endif %} + {% if shelf_is_set %} + + {% trans "Download all books from this shelf" %} + + + {% if user_is_owner %} +

{% trans "Share this shelf" %}

+
+

{% trans "Copy this link and share it with other people to let them see your shelf." %} + +

+
+ {% endif %} + {% endif %} + {% 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 %} +
    + {% for book in object_list %} +
  1. + {% if user_is_owner %} + {% trans "Delete" %} + {% endif %} + {{ book.short_html }}
  2. + {% endfor %} +
+ {% 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" %} +

{% trans "Find out why Internet libraries can't publish this author's works." %}

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

Półki

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

Autorzy

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

Epoki

- +

{% trans "Authors" %}

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

Rodzaje

- +

{% trans "Kinds" %}

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

Gatunki literackie

- - {% endif %} +

{% trans "Genres" %}

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

{% trans "Epochs" %}

+ {% tag_list categories.epoch tags %} + {% endif %}
{% if categories.theme %} -

Motywy

- +

{% trans "Themes" %}

+ {% tag_list categories.theme tags %} {% endif %}
+ {% endif %} + {% endif %}
-
Zamknij
+
{% trans "Close" %}
-

* Ładowanie

+

* {% trans "Loading" %}

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