reformat templates
[wolnelektury.git] / src / pdcounter / templates / pdcounter / author_detail.html
1 {% extends "base/base.html" %}
2 {% load i18n %}
3 {% load time_tags %}
4
5 {% block titleextra %}{{ author.name }}{% endblock %}
6
7 {% block metadescription %}{% trans "Public domain counter" %}: {{author.name}}.{% endblock %}
8
9 {% block bodyid %}author-detail{% endblock %}
10
11 {% block body %}
12   <div class="left-column">
13     <h1>{{ author.name }}</h1>
14     <div class="normal-text white-box">
15       {% if author.has_description %}
16         <div id="description">
17           <div id='description-long'>{{ author.description|safe }}</div>
18           <div id='description-short'>{{ author.description|safe|truncatewords_html:30 }}</div>
19         </div>
20         <div class="clearboth"></div>
21         <div id="toggle-description"><p></p></div>
22       {% endif %}
23       {% if author.gazeta_link %}
24         <p>
25           <a href="{{ author.gazeta_link }}">
26             {% trans "Read work's study of this author on Lektury.Gazeta.pl" %}
27           </a>
28         </p>
29       {% endif %}
30       {% if author.wiki_link %}
31         <p>
32           <a href="{{ author.wiki_link }}">
33             {% trans "Read article about this author on Wikipedia" %}
34           </a>
35         </p>
36       {% endif %}
37
38       {% if author.alive %}
39         <p>
40           {% trans "This author's works are copyrighted." %}
41           {% trans "<a href='http://domenapubliczna.org/co-to-jest-domena-publiczna/'>Find out</a> why Internet libraries can't publish this author's works." %}
42         </p>
43       {% else %}
44         {% if author.in_pd %}
45           <p>{% trans "This author's works are in public domain and will be published on Internet library of Wolne Lektury soon." %}</p>
46         {% else %}
47           <div>
48             <p>
49               {% trans "This author's works will become part of public domain and will be allowed to be published without restrictions in" %}
50             </p>
51             <div class='countdown' data-until='{{ pd_counter|date_to_utc|utc_for_js }}'></div>
52             <p>
53               {% trans "<a href='http://domenapubliczna.org/co-to-jest-domena-publiczna/'>Find out</a> why Internet libraries can't publish this author's works." %}
54             </p>
55           </div>
56         {% endif %}
57       {% endif %}
58       {% include "info/join_us.html" %}
59     </div>
60   </div>
61
62   <div class="right-column block-form">
63     {% include "publishing_suggest.html" %}
64   </div>
65 {% endblock %}