-<div id="header">
- <h1><a href="{% url wiki.views.document_list %}">Platforma</a></h1>
- <div id="tools">
- <a href="{{ REDMINE_URL }}projects/wl-publikacje/wiki/Pomoc" target="_blank">Pomoc</a>
- | {% include "registration/head_login.html" %}
- | Wersja: <span id="document-revision">{{ document_info.revision }}</span>
- |
- <button style="margin-left: 6px" id="save-button">
- Zapisz
- </button>
- </div>
- <ol id="tabs">
-
- <li id="SummaryPerspective-tab"
- data-ui-related="summary-view-editor" data-ui-jsclass="SummaryPerspective">
- <span>{{ document_meta.title }}</span>
- </li>
-
- <li id="VisualPerspective-tab"
- data-ui-related="simple-editor" data-ui-jsclass="VisualPerspective">
- <span>Edytor</span>
- </li>
-
- <li id="HistoryPerspective-tab"
- data-ui-related="history-view-editor"
- data-ui-jsclass="HistoryPerspective">
- Historia
- </li>
-
- <li id="CodeMirrorPerspective-tab"
- data-ui-related="source-editor" data-ui-jsclass="CodeMirrorPerspective">
- Kod źródłowy
- </li>
- </ol>
-</div>
-<div id="splitter">
- <div id="editor">
- <div id="source-editor" class="editor">
- {% toolbar %}
- <textarea id="codemirror_placeholder"><br/></textarea>
- <input type="hidden" name="name" value="{{ document.name }}" /><input type="hidden" name="author" value="annonymous" /><input type="hidden" name="comment" value="no comment" /><input type="hidden" name="revision" value="{{ document_info.revision }}" />
- </div>
- <div id="simple-editor" class="editor" style="display: none">
- <div id="html-view" class="htmlview">
- </div>
- <div class="toolbar">
- <button id="insert-theme-button">
- Wstaw motyw
- </button>
- <button id="insert-annotation-button">
- Wstaw przypis
- </button>
- <div class="toolbar-end">
- </div>
- </div>
- </div>
- {% include "wiki/history_view.html" %}
- {% include "wiki/summary_view.html" %}
+{% block tabs-content %}
+ {% include "wiki/tabs/summary_view.html" %}
+ {% include "wiki/tabs/wysiwyg_editor.html" %}
+ {% include "wiki/tabs/source_editor.html" %}
+ {% include "wiki/tabs/history_view.html" %}
+{% endblock %}
+
+{% block tabs-right %}
+ {% include "wiki/tabs/gallery_view_item.html" %}
+ {% include "wiki/tabs/search_view_item.html" %}
+{% endblock %}
+
+{% block splitter-extra %}
+<div class="vsplitbar" title="{% trans "Click to open/close gallery" %}">