9031d19d68adfdcd5aa96113abde5cd3655202ba
[redakcja.git] / apps / wiki / templates / wiki / document_details.html
1 {% extends "base.html" %}
2 {% load toolbar_tags %}
3 {% block title %}{{ document.name }} - {{ block.super }}{% endblock %}
4 {% block extrahead %}
5 {% load compressed %}
6 {% compressed_css 'detail' %}
7 {% endblock %}
8
9 {% block extrabody %}
10 <script type="text/javascript" charset="utf-8">
11     var STATIC_URL = '{{STATIC_URL}}';
12 </script>
13 <script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8">
14 </script>
15 {% compressed_js 'detail' %}
16 {% endblock %}
17 {% block maincontent %}
18 <div id="loading-overlay">
19     <div id="loading-message">
20         <img src="{{STATIC_URL}}img/spinner.gif" />
21         <p>
22             Ładowanie
23         </p>
24     </div>
25 </div>
26
27 <div id="document-meta"
28         data-document-name="{{ document.name }}" style="display:none">
29         
30         {% for k, v in document_meta.items %}
31                 <span data-key="{{ k }}">{{ v }}</span>
32         {% endfor %}
33 </div>
34
35 <div id="header">
36     <h1><a href="{% url wiki.views.document_list %}">Platforma</a></h1>
37     <div id="tools">
38         <a href="{{ REDMINE_URL }}projects/wl-publikacje/wiki/Pomoc" target="_blank">Pomoc</a>
39         | {% include "registration/head_login.html" %} 
40         | Wersja: <span id="document-revision">unknown</span>
41         | 
42         <button style="margin-left: 6px" id="save-button">
43             Zapisz
44         </button>
45     </div>
46     <ol id="tabs">      
47                 <li id="SummaryPerspective" 
48                         data-ui-related="summary-view-editor" 
49                         data-ui-jsclass="SummaryPerspective">
50             <span>{{ document_meta.title }}</span>
51         </li>           
52                 
53         <li id="VisualPerspective" 
54                         data-ui-related="simple-editor" 
55                         data-ui-jsclass="VisualPerspective">
56             <span>Edytor</span>
57         </li>
58                 
59                 <li id="HistoryPerspective" 
60                         data-ui-related="history-view-editor" 
61                         data-ui-jsclass="HistoryPerspective">           
62             <span>Historia</span>
63         </li>
64                         
65                 <li id="CodeMirrorPerspective" 
66                         data-ui-related="source-editor" 
67                         data-ui-jsclass="CodeMirrorPerspective">
68             <span>Kod źródłowy</span>
69         </li>
70     </ol>
71 </div>
72 <div id="splitter">
73     <div id="editor">
74         <div id="source-editor" class="editor">
75             {% toolbar %}
76             <textarea id="codemirror_placeholder">&lt;br/&gt;</textarea>
77             <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 }}" />
78         </div>
79         <div id="simple-editor" class="editor" style="display: none">
80             <div id="html-view" class="htmlview">
81             </div>
82             <div class="toolbar">
83                 <button id="insert-theme-button">
84                     Wstaw motyw
85                 </button>
86                 <button id="insert-annotation-button">
87                     Wstaw przypis
88                 </button>
89                 <div class="toolbar-end">
90                 </div>
91             </div>
92         </div>
93                 {% include "wiki/history_view.html" %}
94                 {% include "wiki/summary_view.html" %}
95     </div>
96     <div class="vsplitbar" title="Klinknij aby (ro)zwinąć galerię."> </div>
97     
98         <div id="side-gallery">
99                 <!-- gallery toolbar -->                                
100         <div class="toolbar">
101             <button class="previous-page">
102                 <img src="{{STATIC_URL}}icons/go-previous.png" alt="Poprzednia" title="Poprzednia"/>
103             </button><input type="text" size="3" maxlength="3" value="1" class="page-number" />
104             <button class="next-page">
105                 <img src="{{STATIC_URL}}icons/go-next.png" alt="Następna" title="Następna"/>
106             </button>
107             <button class="zoom-in">
108                 Powiększ
109             </button>
110             <button class="zoom-out">
111                 Pomniejsz
112             </button>
113             <div class="toolbar-end">
114             </div>
115         </div>        
116                 <div class="error_message"> </div>
117                 <div class="gallery-image">
118                         <img src="{{MEDIA_URL}}/images/empty.png" />
119                 </div>
120     </div>
121 </div>
122 {% include "wiki/save_dialog.html" %}
123 {% include "wiki/tag_dialog.html" %}
124 {% endblock %}