Fixed the list filter.
[redakcja.git] / apps / wiki / templates / wiki / document_details.html
1 {% extends "base.html" %}
2 {% load toolbar_tags %}
3
4 {% block title %}{{ document.name }} - {{ block.super }}{% endblock %}
5
6 {% block extrahead %}
7         {% load compressed %}
8         {% compressed_css 'detail' %}
9 {% endblock %}
10         
11 {% block extrabody %}
12     <script type="text/javascript" charset="utf-8">
13         var STATIC_URL = '{{STATIC_URL}}';
14     </script>    
15     <script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
16         {% compressed_js 'detail' %}
17 {% endblock %}
18
19 {% block maincontent %}
20         <div id="loading-overlay">
21             <div id="loading-message"><img src="{{STATIC_URL}}img/spinner.gif" /><p>Ładowanie</p></div>
22         </div>
23         <div id="document-meta" style="display:none">
24         {% for k, v in document.meta.items %}
25             <div class="{{ k }}">{{ v}}</div>
26         {% endfor %}
27         </div>
28         <div id="header">            
29             <h1><a href="{% url wiki.views.document_list %}">Platforma</a></h1>
30                         <div id="tools">
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>
35                         </div>          
36             <ol id="tabs">
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>
40             </ol>
41                           
42         </div>
43         <div id="splitter">
44             <div id="editor">
45                 <div id="source-editor" class="editor">
46                     {% toolbar %}
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 }}" />
52                 </div>
53                 <div id="simple-editor" class="editor" style="display: none">                    
54                     <div id="html-view" class="htmlview">
55                     </div>
56                                         
57                                         <div class="toolbar">
58                         <button id="insert-theme-button">Wstaw motyw</button> <button id="insert-annotation-button">Wstaw przypis</button>
59                         <div class="toolbar-end"> </div>
60                     </div>
61                 </div>
62                                 
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>
67                                                 <table>
68                                                         <thead>                 
69                                                                 <th>&nbsp;</th>                                 
70                                                                 <th>Numer</th>
71                                                                 <th>Opis</th>
72                                                                 <th>Użytkownik</th>
73                                                                 <th>Data</th>
74                                                         </thead>
75                                                         <tbody id="changes-list">                                                                                                                               
76                                                         </tbody>
77                                                 </table>
78                                                 
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> -->
81                                                 <div id="diff-view">                                                                                                                                            
82                                         </div>                                                                  
83                                 </div>                                                  
84                                                         
85                                 </div>
86             </div>
87             <div class="vsplitbar" title="Klinknij aby (ro)zwinąć galerię."> </div>
88             <div id="sidebar">
89                 <div class="toolbar">
90                     <button class="previous-page">
91                         <img src="{{STATIC_URL}}icons/go-previous.png" alt="Poprzednia" title="Poprzednia"/>
92                     </button>
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"/>
96                     </button>
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>
101                                         {% endif %}
102                     <div class="toolbar-end"> </div>
103                 </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>    
110                 </div>
111                                 {% endif %}
112                 <div class="gallery-image">
113                     <img src="" />
114                 </div>
115             </div>
116         </div>
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>
121         </div>
122 {% endblock %}