Merge branch 'master' of git@github.com:fnp/wolnelektury
[wolnelektury.git] / wolnelektury / templates / pdcounter / author_detail.html
1 {% extends "base.html" %}
2 {% load i18n %}
3
4 {% block title %}{{ author.name }} w WolneLektury.pl{% endblock %}
5
6 {% block bodyid %}author-detail{% endblock %}
7
8 {% block body %}
9     <h1>{{ author.name }}</h1>
10     <form action="{% url search %}" method="get" accept-charset="utf-8" id="search-form">
11         <p>{{ form.q }} <input type="submit" value="{% trans "Search" %}" /> <strong>{% trans "or" %}</strong> <a href="{% url main_page %}">{% trans "return to main page" %}</a></p>
12     </form>
13
14     <div id="books-list">
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><a href="{{ author.gazeta_link }}">
25             {% trans "Read work's study of this author on Lektury.Gazeta.pl" %}
26         </a></p>
27         {% endif %}
28         {% if author.wiki_link %}
29         <p><a href="{{ author.wiki_link }}">
30             {% trans "Read article about this author on Wikipedia" %}
31         </a></p>
32         {% endif %}
33
34         {% if author.alive %}
35             <p>{% trans "This author's works are copyrighted." %}
36             {% 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>
37         {% else %}
38             {% if author.in_pd %}
39                 <p>{% trans "This author's works are in public domain and will be published on Internet school library of Wolne Lektury soon." %}</p>
40             {% else %}
41                 <div>
42                     <p>{% trans "This author's works will become part of public domain and will be allowed to be published without restrictions in" %}</p>
43                     {% include "pdcounter/pd_counter.html" %}
44                     <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>
45                 </div>
46             {% endif %}
47         {% endif %}
48         {% include "info/join_us.html" %}
49     </div>
50
51     <div id="set-window">
52         <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
53         <div class="target">
54             <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>
55         </div>
56     </div>
57 {% endblock %}