X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/de9f42c4d8e067a887c74714c92d1772dddf1203..4e290186955957b103282f78036b344e7e38d279:/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 a05138156..b24929cd9 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 %} +{% load catalogue_tags pagination_tags switch_tag %} {% block title %}{% title_from_tags tags %} w WolneLektury.pl{% endblock %} @@ -9,51 +9,80 @@ {% block body %}

{% title_from_tags tags %}

{% breadcrumbs tags %} - - {% if shelf_is_set and not object_list %} + + {% if only_shelf and not object_list %}
-

Twoja półka jest pusta

-

Możesz wrzucić książkę na półkę, wchodząc na stronę danej lektury i klikając na przycisk „Na półkę!”.

+

{% 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 {% else %} {% autopaginate object_list 10 %}
{% with tags|last as last_tag %} {% if last_tag.has_description %}
- {{ last_tag.description|safe }} +
{{ last_tag.description|safe }}
+
{{ last_tag.description|safe|truncatewords_html:30 }}
-

Zwiń opis ▲

+

{% endif %} - {% if shelf_is_set %} + {% if only_shelf %} - Pobierz wszystkie książki z tej półki + {% trans "Download all books from this shelf" %} + {% if only_my_shelf %} +

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

- {% ifequal last_tag.category "author" %}Przeczytaj omówienia utworów autora w serwisie Lektury.Gazeta.pl{% endifequal %} - {% ifequal last_tag.category "epoch" %}Przeczytaj omówienia z epoki {{ last_tag }} w serwisie 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" %}Przeczytaj artykuł o autorze w Wikipedii{% endifequal %} - {% ifequal last_tag.category "epoch" %}Przeczytaj artykuł o epoce {{ last_tag }} w Wikipedii{% 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 %} @@ -62,7 +91,7 @@ {% for book in object_list %}
  • {% if user_is_owner %} - Usuń + {% trans "Delete" %} {% endif %} {{ book.short_html }}
  • {% endfor %} @@ -70,27 +99,21 @@ {% else %} {% if only_author %} {% if last_tag.alive %} -

    Dzieła tego autora objęte są prawem autorskim.

    -

    Dowiedz się, dlaczego biblioteki internetowe - nie mogą udostępniać dzieł tego autora.

    - {% else %}{% comment %} Nie żyje {% endcomment %} + {% trans "This author's works are copyrighted." %} + {% else %}{% comment %} Is dead {% endcomment %} {% if last_tag.in_pd %} -

    Dzieła tego autora znajdują się w domenie publicznej - i niedługo zostaną opublikowane w szkolnej bibliotece - internetowej Wolne Lektury.

    - {% else %}{% comment %} Nie żyje, ale jeszcze nie w PD {% endcomment %} +

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

    Dzieła tego autora przejdą do zasobów domeny - publicznej i będą mogły być publikowane bez - żadnych ograniczeń za:

    +

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

    Dowiedz się, dlaczego biblioteki internetowe - nie mogą udostępniać dzieł tego autora.

    +

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

    {% endif %} {% endif %} {% else %} - Nie znaleziono żadnych utworów. + {% trans "Sorry! Search cirteria did not match any resources." %} {% endif %} {% include "info/join_us.html" %} {% endif %} @@ -98,29 +121,29 @@ {% paginate %}
    {% if object_list %} - {% comment %} Jeśli nic nie znaleźliśmy, to i po prawej stronie nic nie będzie {% endcomment %} + {% comment %} If we didn't find anything there will be nothing on the right side as well {% endcomment %}
    {% if categories.author %} -

    Autorzy

    +

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

    +

    {% trans "Genres" %}

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

    Epoki

    +

    {% trans "Epochs" %}

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

    Motywy

    +

    {% trans "Themes" %}

    {% tag_list categories.theme tags %} {% endif %}
    @@ -129,9 +152,9 @@ {% endif %} {% endif %}
    - +
    -

    * Ładowanie

    +

    * {% trans "Loading" %}

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