Locatizations.
[wolnelektury.git] / src / pdcounter / templates / pdcounter / author_detail.html
index 98a5fc7..8e3153a 100644 (file)
@@ -1,65 +1,66 @@
-{% extends "base/base.html" %}
+{% extends "base.html" %}
 {% load i18n %}
 {% load time_tags %}
 
-{% block titleextra %}{{ author.name }}{% endblock %}
+{% block settings %}
+  {% load title %}
+  {% title author.name %}
+{% endblock %}
 
-{% block metadescription %}{% trans "Public domain counter" %}: {{author.name}}.{% endblock %}
+{% block breadcrumbs %}
+  <a href="/katalog/"><span>{% trans "Katalog" %}</span></a>
+  <a href="/katalog/autor/"><span>{% trans "Autor" %}</span></a>
+{% endblock %}
 
-{% block bodyid %}author-detail{% endblock %}
+{% block main %}
+  <div class="l-section">
+    <div class="l-author__header">
+      <h1>{{ author.name }}</h1>
+    </div>
+  </div>
 
-{% block body %}
-  <div class="left-column">
-    <h1>{{ author.name }}</h1>
-    <div class="normal-text white-box">
-      {% if author.has_description %}
-        <div id="description">
-          <div id='description-long'>{{ author.description|safe }}</div>
-          <div id='description-short'>{{ author.description|safe|truncatewords_html:30 }}</div>
-        </div>
-        <div class="clearboth"></div>
-        <div id="toggle-description"><p></p></div>
-      {% endif %}
-      {% if author.gazeta_link %}
-        <p>
-          <a href="{{ author.gazeta_link }}">
-            {% trans "Read work's study of this author on Lektury.Gazeta.pl" %}
-          </a>
-        </p>
-      {% endif %}
-      {% if author.wiki_link %}
-        <p>
-          <a href="{{ author.wiki_link }}">
-            {% trans "Read article about this author on Wikipedia" %}
-          </a>
-        </p>
-      {% endif %}
+  <div class="l-section">
 
-      {% if author.alive %}
-        <p>
-          {% trans "This author's works are copyrighted." %}
-          {% trans "<a href='http://domenapubliczna.org/co-to-jest-domena-publiczna/'>Find out</a> why Internet libraries can't publish this author's works." %}
-        </p>
+
+    {% if author.alive %}
+      <p>
+        {% trans "Dzieła tego autora objęte są prawem autorskim." %}
+        {% blocktrans trimmed with url='https://domenapubliczna.org/co-to-jest-domena-publiczna/' %}
+          <a href="{{ url }}">Dowiedz się</a>, dlaczego biblioteki internetowe nie mogą
+          udostępniać dzieł tego autora.
+        {% endblocktrans %}
+      </p>
+    {% else %}
+      {% if author.in_pd %}
+        <p>{% blocktrans trimmed %}
+          Dzieła tego autora znajdują się w domenie publicznej, ale jeszcze nie
+          zostały opublikowane w bibliotece internetowej Wolne Lektury.
+        {% endblocktrans %}</p>
       {% else %}
-        {% if author.in_pd %}
-          <p>{% trans "This author's works are in public domain and will be published on Internet library of Wolne Lektury soon." %}</p>
-        {% else %}
-          <div>
-            <p>
-              {% trans "This author's works will become part of public domain and will be allowed to be published without restrictions in" %}
-            </p>
-            <div class='countdown' data-until='{{ pd_counter|date_to_utc|utc_for_js }}'></div>
-            <p>
-              {% trans "<a href='http://domenapubliczna.org/co-to-jest-domena-publiczna/'>Find out</a> why Internet libraries can't publish this author's works." %}
-            </p>
-          </div>
-        {% endif %}
+        <div>
+          <p>
+            {% blocktrans trimmed %}
+              Dzieła tego autora przejdą do zasobów domeny publicznej i będą mogły być
+              publikowane bez żadnych ograniczeń za
+            {% endblocktrans %}
+          </p>
+          <div class='countdown' data-until='{{ pd_counter|date_to_utc|utc_for_js }}'></div>
+          <p>
+            {% blocktrans trimmed with url='https://domenapubliczna.org/co-to-jest-domena-publiczna/' %}
+              <a href="{{ url }}">Dowiedz się</a>, dlaczego biblioteki internetowe nie mogą
+              udostępniać dzieł tego autora.
+            {% endblocktrans %}
+          </p>
+        </div>
       {% endif %}
-      {% include "info/join_us.html" %}
-    </div>
-  </div>
+    {% endif %}
+
 
-  <div class="right-column block-form">
-    {% include "publishing_suggest.html" %}
   </div>
+
+  <section class="l-section">
+    <div class="l-author">
+      {% include "catalogue/author_box.html" %}
+    </div>
+  </section>
 {% endblock %}