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="gallery">{{ chunk.book.gallery }}</span>
30 <span data-key="gallery-start">{% if chunk.gallery_start %}{{ chunk.gallery_start }}{% endif %}</span>
31 <span data-key="revision">{{ revision }}</span>
33 {% block meta-extra %} {% endblock %}
36 <nav class="navbar navbar-expand-sm navbar-dark bg-dark" id="header">
37 <a class="navbar-brand" href="{{ chunk.book.get_absolute_url }}" target="_blank">
38 <img src="{% url 'cover_preview' chunk.book.slug chunk.slug %}"
39 style="height: 59px; margin-top:-13px;margin-bottom: -13px;">
42 <ul class="tabs nav nav-tabs mr-auto" id="tabs">
43 {% block tabs-menu %}{% endblock %}
46 {% block tools-menu %}
49 <ul class="tabs nav nav-tabs" id="tabs-right">
50 {% block tabs-right %}{% endblock %}
53 <div class='navbar-nav'>
54 <a class='nav-item nav-link' href="{{ REDMINE_URL }}projects/wl-publikacje/wiki/Pomoc" target="_blank">
55 {% trans "Help" %}</a>
59 {% include "registration/head_login.html" %}
60 {% block dialogs %} {% endblock %}
66 <span class="navbar-text">{% trans "Version" %}: <span id="document-revision">{% trans "Unknown" %}</span></span>
68 <button class='ml-2 nav-item btn btn-primary' id="save-button">{% trans "Save" %}</button>
69 <span id='save-attempt-info' class="navbar-text ml-2"><span class="alert alert-info">{% trans "Save attempt in progress" %}</span></span>
70 <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>
75 <div id="editor" class="{% block editor-class %} {% endblock %}">
76 {% block tabs-content %} {% endblock %}
78 {% block splitter-extra %} {% endblock %}