1 {% extends "base.html" %}
2 {% load toolbar_tags %}
3 {% block title %}{{ document.name }} - {{ block.super }}{% endblock %}
6 {% compressed_css 'detail' %}
9 <script type="text/javascript" charset="utf-8">
10 var STATIC_URL = '{{STATIC_URL}}';
12 <script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8">
14 {% compressed_js 'detail' %}
16 {% block maincontent %}
17 <div id="loading-overlay">
18 <div id="loading-message">
19 <img src="{{STATIC_URL}}img/spinner.gif" />
26 <div id="document-meta" data-document-name="{{ document.name }}" style="display:none">
27 {% for k, v in document.meta.items %}
28 <span data-key="{{ k }}">{{ v }}</span>
33 <h1><a href="{% url wiki.views.document_list %}">Platforma</a></h1>
35 <a href="{{ REDMINE_URL }}projects/wl-publikacje/wiki/Pomoc" target="_blank">Pomoc</a>
36 | {% include "registration/head_login.html" %}
37 | Wersja: <span id="document-revision">{{ document.revision }}</span>
39 <button style="margin-left: 6px" id="save-button">
44 <li id="HistoryPerspective-tab"
45 data-ui-related="history-viewer"
46 data-ui-jsclass="HistoryPerspective">
50 <li id="VisualPerspective-tab"
51 data-ui-related="simple-editor" data-ui-jsclass="VisualPerspective">
52 <span id="document-name">{{ document.name }}</span>
55 <li id="CodeMirrorPerspective-tab"
56 data-ui-related="source-editor" data-ui-jsclass="CodeMirrorPerspective">
63 <div id="source-editor" class="editor">
65 <textarea id="codemirror_placeholder"><br/></textarea>
66 <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.revision }}" />
68 <div id="simple-editor" class="editor" style="display: none">
69 <div id="html-view" class="htmlview">
72 <button id="insert-theme-button">
75 <button id="insert-annotation-button">
78 <div class="toolbar-end">
82 {% include "wiki/history_panel.html" %}
84 <div class="vsplitbar" title="Klinknij aby (ro)zwinąć galerię."> </div>
87 <button class="previous-page">
88 <img src="{{STATIC_URL}}icons/go-previous.png" alt="Poprzednia" title="Poprzednia"/>
89 </button><input type="text" size="3" maxlength="3" value="1" class="page-number" />
90 <button class="next-page">
91 <img src="{{STATIC_URL}}icons/go-next.png" alt="Następna" title="Następna"/>
93 <button class="zoom-in">
96 <button class="zoom-out">
99 {% if request.user.is_staff %}
100 <button class="change-gallery">
104 <div class="toolbar-end">
107 {% if request.user.is_staff %}
108 <div class="toolbar" id="change-gallery-toolbar">
109 <input type="text" value="" class="chosen-gallery" />
110 <button class="change-gallery-ok">
113 <button class="change-gallery-cancel">
116 <div class="toolbar-end">
120 <div class="gallery-image"><img src="" /></div>
123 <div id="save-dialog" style="display: none; text-align: left">
124 <label for="komentarz" style="display: block">
127 <textarea name="komentarz" id="komentarz" style="display: block; width: 100%">
129 <button id="save-ok">
132 <button id="save-cancel">