1 {% extends "base.html" %}
2 {% load toolbar_tags i18n %}
5 {% block titleextra %}{% if chunk.pretty_title %}{{ chunk.pretty_title }}{% else %}{{ chunk.book.title }}{% endif %}{% endblock %}
8 {% stylesheet 'detail' %}
9 <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
10 <link rel="stylesheet" href="/wlxml/wl.css">
14 <script type="text/javascript">
15 var STATIC_URL = '{{STATIC_URL}}';
17 {% javascript 'detail' %}
19 src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"
20 integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU="
21 crossorigin="anonymous"></script>
24 {% block maincontent %}
25 <div id="document-meta"
26 data-chunk-id="{{ chunk.pk }}" style="display:none">
28 <span data-key="book-slug">{{ chunk.book.slug }}</span>
29 <span data-key="scans">{{ chunk.book.catalogue_book.scans_galleries|join:',' }}</span>
30 <span data-key="gallery">{{ chunk.book.gallery }}</span>
31 <span data-key="gallery-start">{% if chunk.gallery_start %}{{ chunk.gallery_start }}{% endif %}</span>
32 <span data-key="revision">{{ revision }}</span>
34 {% block meta-extra %} {% endblock %}
37 <nav class="navbar navbar-expand-sm navbar-dark bg-dark" id="header">
38 <a class="navbar-brand" href="{{ chunk.book.get_absolute_url }}" target="_blank">
39 <img src="{% url 'cover_preview' chunk.book.slug chunk.slug %}"
40 style="height: 59px; margin-top:-13px;margin-bottom: -13px;">
43 <ul class="tabs nav nav-tabs mr-auto" id="tabs">
44 {% block tabs-menu %}{% endblock %}
47 {% block tools-menu %}
50 <ul class="tabs nav nav-tabs" id="tabs-right">
51 {% block tabs-right %}{% endblock %}
54 <div class='navbar-nav'>
55 <a class='nav-item nav-link' href="{{ REDMINE_URL }}projects/wl-publikacje/wiki/Pomoc" target="_blank">
56 {% trans "Help" %}</a>
60 {% include "registration/head_login.html" %}
61 {% block dialogs %} {% endblock %}
67 <span class="navbar-text">{% trans "Version" %}: <span id="document-revision">{% trans "Unknown" %}</span></span>
69 <button class='ml-2 nav-item btn btn-primary' id="save-button">{% trans "Save" %}</button>
70 <span id='save-attempt-info' class="navbar-text ml-2"><span class="alert alert-info">{% trans "Save attempt in progress" %}</span></span>
71 <span id='out-of-date-info' class="navbar-text ml-2"><span class="alert alert-danger">{% trans "There is a newer version of this document!" %}</span></span>
76 <div id="editor" class="{% block editor-class %} {% endblock %}">
77 {% block tabs-content %} {% endblock %}
79 {% block splitter-extra %} {% endblock %}