add tag ids
[wolnelektury.git] / src / bookmarks / templates / bookmarks / quote_detail.html
1 {% extends 'base.html' %}
2 {% load i18n static %}
3
4
5 {% block breadcrumbs %}
6   <a><span>Cytaty użytkowników</span></a>
7
8 {% endblock %}
9
10 {% block main %}
11
12 {% with book=object.book %}
13   <main class="l-main page-book">
14     <section class="l-section lay-s-col-rev">
15       {% with first_text=book.get_first_text %}
16         <aside class="l-aside">
17           <figure class="only-l">
18             <a href="{{ book.get_absolute_url }}">
19               <img src="{% if book.cover_clean %}{{ book.cover_clean.url }}{% endif %}" alt="{{ book.pretty_title }}" width="240">
20             </a>
21           </figure>
22           </ul>
23         </aside>
24         <div class="l-content">
25           <header class="l-header">
26             <div class="l-header__content">
27               <p>{% for author in book.authors %}<a href="{{ author.get_absolute_url }}">{{ author.name }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
28               </p>
29               <h1><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></h1>
30               {% if book.translators.exists %}
31                 <p class="l-header__translators">
32                   {% for translator in book.translators.all %}
33                     {% if forloop.first and translator.name != 'tłumacz nieznany' %}
34                       {% trans "tłum." %}
35                     {% endif %}
36                     <a href="{{ translator.get_absolute_url }}">
37                     {{ translator }}</a>{% if not forloop.last %}, {% endif %}
38                   {% endfor %}
39                 </p>
40               {% endif %}
41             </div>
42
43
44
45           </header>
46           <article class="">
47
48             <div class="c-media">
49               <div class="lay-row lay-l-block lay-spread">
50                 <figure class="only-s book-cover-small">
51                   <a href="{{ book.get_absolute_url }}">
52                     <img src="{% if book.cover_clean %}{{ book.cover_clean.url }}{% endif %}" alt="{{ book.pretty_title }}">
53                   </a>
54                 </figure>
55               </div>
56             </div>
57
58               <div class="row">
59                 <div class="l-author__quotes">
60                     <div class="l-author__quotes__slider__item">
61                       <em>
62                         <p>
63                           {{ object.text|linebreaksbr }}
64                         </p>
65                       </em>
66                       <p>
67                         <a class="text-link" href="{% url 'book_text' object.book.slug %}#{{ object.start_elem }}">zobacz w treści</a>
68                       </p>
69                   </div>
70                 </div>
71               </div>
72           </article>
73         </div>
74       {% endwith %}
75     </section>
76
77   </main>
78
79
80
81
82   {% endwith %}
83 {% endblock %}