Use years of birth and death in author descriptions.
[redakcja.git] / src / catalogue / templates / catalogue / author_description.html
1 <dl>
2   {% if obj.date_of_birth or obj.place_of_birth %}
3     <dt>Ur.</dt>
4     <dd>
5       {% if obj.date_of_birth %}
6         {{ obj.date_of_birth }}
7       {% elif obj.year_of_birth %}
8         {{ obj.year_of_birth }}
9       {% endif %}
10       {% if obj.place_of_birth %}
11         w
12         {% if obj.place_of_birth.locative %}
13           {{ obj.place_of_birth.locative }}
14         {% else %}
15           {{ obj.place_of_birth.name }}
16         {% endif %}
17       {% endif %}
18     </dd>
19   {% endif %}
20   {% if obj.date_of_death or obj.place_of_death %}
21     <dt>Zm.</dt>
22     <dd>
23       {% if obj.date_of_death %}
24         {{ obj.date_of_death }}
25       {% elif obj.year_of_death %}
26         {{ obj.year_of_death }}
27       {% endif %}
28       {% if obj.place_of_death %}
29         w
30         {% if obj.place_of_death.locative %}
31           {{ obj.place_of_death.locative }}
32         {% else %}
33           {{ obj.place_of_death.name }}
34         {% endif %}
35       {% endif %}
36     </dd>
37   {% endif %}
38
39   {% if obj.notablebook_set.exists %}
40     <dt>Najważniejsze dzieła:</dt>
41     <dd>
42       {% for nb in obj.notablebook_set.all %}
43         <i>{{ nb.book.title }}</i>{% if nb.book.original_year %}
44           ({{ nb.book.original_year }}){% endif %}{% if not forloop.last %}, {% endif %}
45       {% endfor %}
46     </dd>
47   {% endif %}
48
49 </dl>
50
51 {{ obj.description|safe }}