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