{% extends "base.html" %}
{% load toolbar_tags i18n %}
-{% block title %}{{ document.name }} - {{ block.super }}{% endblock %}
+{% block title %}{{ book.title }} - {{ block.super }}{% endblock %}
{% block extrahead %}
{% load compressed %}
{% compressed_css 'detail' %}
{% block maincontent %}
<div id="document-meta"
- data-document-name="{{ document.name }}" style="display:none">
+ data-chunk-id="{{ chunk.pk }}" style="display:none">
- {% for k, v in document_meta.items %}
- <span data-key="{{ k }}">{{ v }}</span>
- {% endfor %}
-
- {% for k, v in document_info.items %}
- <span data-key="{{ k }}">{{ v }}</span>
- {% endfor %}
+ <span data-key="gallery">{{ chunk.book.gallery }}</span>
+ <span data-key="gallery-start">{% if chunk.gallery_start %}{{ chunk.gallery_start }}{% endif %}</span>
+ <span data-key="revision">{{ revision }}</span>
+ <span data-key="diff">{{ request.GET.diff }}</span>
{% block meta-extra %} {% endblock %}
</div>
<div id="header">
- <h1><a href="{% url wiki.views.document_list %}">Platforma</a></h1>
+ <h1><a href="{% url 'catalogue_document_list' %}"><img src="{{STATIC_URL}}icons/go-home.png"/><a href="{% url 'catalogue_document_list' %}">Strona<br>główna</a></h1>
<div id="tools">
<a href="{{ REDMINE_URL }}projects/wl-publikacje/wiki/Pomoc" target="_blank">
{% trans "Help" %}</a>
| {% trans "Version" %}: <span id="document-revision">{% trans "Unknown" %}</span>
{% if not readonly %}
| <button style="margin-left: 6px" id="save-button">{% trans "Save" %}</button>
+ <span id='save-attempt-info'>{% trans "Save attempt in progress" %}</span>
+ <span id='out-of-date-info'>{% trans "There is a newer version of this document!" %}</span>
{% endif %}
</div>
- <ol id="tabs">
+ <ol id="tabs" class="tabs">
{% block tabs-menu %} {% endblock %}
</ol>
+ <ol id="tabs-right" class="tabs">
+ {% block tabs-right %} {% endblock %}
+ </ol>
</div>
<div id="splitter">
<div id="editor" class="{% block editor-class %} {% endblock %}">
{% block dialogs %} {% endblock %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}