fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Book page fix
[wolnelektury.git]
/
src
/
catalogue
/
templates
/
catalogue
/
book_text.html
diff --git
a/src/catalogue/templates/catalogue/book_text.html
b/src/catalogue/templates/catalogue/book_text.html
index
a771c17
..
9d28bd7
100644
(file)
--- a/
src/catalogue/templates/catalogue/book_text.html
+++ b/
src/catalogue/templates/catalogue/book_text.html
@@
-21,6
+21,7
@@
{% block menu %}
<li>
<a href="{{ book.get_absolute_url }}" id="menu-book" data-box="book-short">
{% block menu %}
<li>
<a href="{{ book.get_absolute_url }}" id="menu-book" data-box="book-short">
+ <span class="label">{% trans "Click to download" %}:</span>
<img src="{% if book.cover_thumb %}{% thumbnail book.cover_thumb '240x332' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover_thumb.url }}{% endthumbnail %}{% endif %}"
width="120" height="166"
alt="{{ book.pretty_title }}"
<img src="{% if book.cover_thumb %}{% thumbnail book.cover_thumb '240x332' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover_thumb.url }}{% endthumbnail %}{% endif %}"
width="120" height="166"
alt="{{ book.pretty_title }}"
@@
-82,6
+83,9
@@
{% if prev %}
<a style="display:inline-block;padding: 1em;" href="{% url 'book_text' prev.slug %}">← {{ prev.title }}</a>
{% endif %}
{% if prev %}
<a style="display:inline-block;padding: 1em;" href="{% url 'book_text' prev.slug %}">← {{ prev.title }}</a>
{% endif %}
+ <div style="text-align:center; margin-top:1em;">
+ {% content_warning book %}
+ </div>
<div style="clear:both;"></div>
{{ book_text|safe }}
{% endwith %}
<div style="clear:both;"></div>
{{ book_text|safe }}
{% endwith %}
@@
-110,11
+114,11
@@
{% block footer %}
<div id="wltoc" class="box">
{% if book.parent %}
{% block footer %}
<div id="wltoc" class="box">
{% if book.parent %}
- {% for b in book.ancestor
.all
%}
+ {% for b in book.ancestor
s
%}
{% if forloop.counter > 1 %}
<li>
{% endif %}
{% if forloop.counter > 1 %}
<li>
{% endif %}
- <a href="{
{ b.get_absolute_url }
}">{{ b.title }}</a>
+ <a href="{
% if b.html_file %}{% url 'book_text' b.slug %}{% else %}{{ b.get_absolute_url }}{% endif %
}">{{ b.title }}</a>
<ol>
{% endfor %}
{% for b in book.get_siblings %}
<ol>
{% endfor %}
{% for b in book.get_siblings %}
@@
-137,6
+141,11
@@
{% else %}
<strong>{{ book.title }}</strong>
<div id="heretoc"></div>
{% else %}
<strong>{{ book.title }}</strong>
<div id="heretoc"></div>
+ <ol>
+ {% for c in book.get_children %}
+ <li><a href="{% url 'book_text' c.get_first_text.slug %}">{{ c.title }}</a></li>
+ {% endfor %}
+ </ol>
{% endif %}
</div>
{% endif %}
</div>
@@
-179,7
+188,7
@@
{% localize off %}
<script type="application/json" id="interesting-references">
{
{% localize off %}
<script type="application/json" id="interesting-references">
{
- {% for ref in book.reference
_set.all
%}
+ {% for ref in book.reference
s
%}
{% if ref.entity.is_interesting %}
"{{ ref.entity.uri }}": {
{% if ref.entity.lat and ref.entity.lon %}
{% if ref.entity.is_interesting %}
"{{ ref.entity.uri }}": {
{% if ref.entity.lat and ref.entity.lon %}