1 {% extends "base.html" %}
2 {% load toolbar_tags %}
4 {% block title %}{{ document.name }} - {{ block.super }}{% endblock %}
8 {% compressed_css 'detail' %}
12 <script type="text/javascript" charset="utf-8">
13 var STATIC_URL = '{{STATIC_URL}}';
15 <script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
16 {% compressed_js 'detail' %}
19 {% block maincontent %}
20 <div id="loading-overlay">
21 <div id="loading-message"><img src="{{STATIC_URL}}img/spinner.gif" /><p>Ładowanie</p></div>
23 <div id="document-meta" style="display:none">
24 {% for k, v in document.meta.items %}
25 <div class="{{ k }}">{{ v}}</div>
29 <h1><a href="{% url wiki.views.document_list %}">Platforma</a></h1>
31 <a href="{{ REDMINE_URL }}projects/wl-publikacje/wiki/Pomoc" target="_blank">Pomoc</a>
32 | {% include "registration/head_login.html" %}
33 | Wersja: <span id="document-revision">{{ document.revision }}</span>
34 | <button style="margin-left: 6px" id="save-button">Zapisz</button>
37 <li id="simple-view-tab" ui:related="simple-editor"><span id="document-name">{{ document.name }}</span></li>
38 <li id="source-view-tab" ui:related="source-editor">Kod źródłowy</li>
39 <li id="history-view-tab" ui:related="history-viewer">Historia</li>
45 <div id="source-editor" class="editor">
47 <textarea name="text" id="id_text">{{ document.plain_text }}</textarea>
48 <input type="hidden" name="name" value="{{ document.name }}" />
49 <input type="hidden" name="author" value="annonymous" />
50 <input type="hidden" name="comment" value="no comment" />
51 <input type="hidden" name="revision" value="{{ document.revision }}" />
53 <div id="simple-editor" class="editor" style="display: none">
54 <div id="html-view" class="htmlview">
58 <button id="insert-theme-button">Wstaw motyw</button> <button id="insert-annotation-button">Wstaw przypis</button>
59 <div class="toolbar-end"> </div>
63 <div id="history-viewer" class="editor" style="display: none">
64 <div class="toolbar"> </div>
65 <div id="history-view">
66 <p class="message-box" style="display:none;"></p>
75 <tbody id="changes-list">
79 <p><button type="button" id="make-diff-button">Porównaj</button></p>
80 <!-- <p><button type="button" id="more-history-button">Więcej</button></p> -->
87 <div class="vsplitbar" title="Klinknij aby (ro)zwinąć galerię."> </div>
90 <button class="previous-page">
91 <img src="{{STATIC_URL}}icons/go-previous.png" alt="Poprzednia" title="Poprzednia"/>
93 <input type="text" size="3" maxlength="3" value="1" class="page-number" />
94 <button class="next-page">
95 <img src="{{STATIC_URL}}icons/go-next.png" alt="Następna" title="Następna"/>
97 <button class="zoom-in">Powiększ</button>
98 <button class="zoom-out">Pomniejsz</button>
99 {% if request.user.is_staff %}
100 <button class="change-gallery">Opcje</button>
102 <div class="toolbar-end"> </div>
104 {% if request.user.is_staff %}
105 <div class="toolbar" id="change-gallery-toolbar">
106 <input type="text" value="" class="chosen-gallery" />
107 <button class="change-gallery-ok">Zmień galerię</button>
108 <button class="change-gallery-cancel">Anuluj</button>
109 <div class="toolbar-end"> </div>
112 <div class="gallery-image">
117 <div id="save-dialog" style="display: none; text-align: left">
118 <label for="komentarz" style="display: block">Opis zmian:</label>
119 <textarea name="komentarz" id="komentarz" style="display: block; width: 100%"></textarea>
120 <button id="save-ok">Zapisz</button> <button id="save-cancel">Anuluj</button>