Epub debugging.
[redakcja.git] / src / documents / templates / documents / book_epubcheck.html
1 {% extends "documents/base.html" %}
2 {% load book_list i18n %}
3 {% load bootstrap4 %}
4 {% load depot %}
5 {% load isbn %}
6
7
8 {% block titleextra %}{{ book.title }}{% endblock %}
9
10
11 {% block content %}
12
13   <div class="card mt-4">
14     <div class="card-header">
15       <h1>Weryfikacja epub: <a href="{{ book.get_absolute_url }}">{{ book.title }}</a></h1>
16     </div>
17     <div class="card-body">
18       {% for msg in messages %}
19         <div class="alert alert-{% if msg.severity == "ERROR" %}danger{% else %}info{% endif %}">
20           {{ msg.message }}
21           {% if msg.suggestion %}
22             <br><br>
23             {{ msg.suggestion }}
24           {% endif %}
25           {% for loc in msg.locations %}
26             {% if loc.wl_chunk %}
27               <br>
28               <a class="btn btn-primary" target="_blank" href="{% url 'wiki_editor' book.slug loc.wl_chunk.slug %}#CodeMirrorPerspective">
29                 {% if loc.wl_chunk.title %}
30                   {{ loc.wl_chunk.title }}:
31                 {% endif %}
32                 Linia {{ loc.wl_line }}
33               </a>
34             {% else %}
35               <br><small><tt>{{ loc }}</tt></small>
36             {% endif %}
37           {% endfor %}
38         </div>
39       {% endfor %}
40     </div>
41   </div>
42
43 {% endblock content %}