Cleanup
[wolnelektury.git] / src / pdcounter / templates / pdcounter / author_detail.html
index 2c346ba..85d29ad 100644 (file)
@@ -1,58 +1,54 @@
-{% 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>Katalog</span></a>
+  <a href="/katalog/autor/"><span>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.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 "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>
+    {% else %}
+      {% if author.in_pd %}
+        <p>{% trans "This author's works are in public domain, but they were not yet published on Internet library of Wolne Lektury." %}</p>
       {% else %}
-        {% if author.in_pd %}
-          <p>{% trans "This author's works are in public domain, but they were not yet published on Internet library of Wolne Lektury." %}</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>
+            {% 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 %}
-      {% 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 %}