1 {% extends "base.html" %}
2 {% load toolbar_tags %}
5 <link rel="stylesheet" href="{{STATIC_URL}}css/master.css" type="text/css" media="screen" charset="utf-8" />
6 <link rel="stylesheet" href="{{STATIC_URL}}css/html.css" type="text/css" media="screen" charset="utf-8" />
7 <link rel="stylesheet" href="{{STATIC_URL}}css/jquery.autocomplete.css" type="text/css" media="screen" title="no title" charset="utf-8">
8 <script type="text/javascript" charset="utf-8">
9 var STATIC_URL = '{{STATIC_URL}}';
11 <script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
12 <script src="{{STATIC_URL}}js/jquery.blockui.js" type="text/javascript" charset="utf-8"></script>
13 <script src="{{STATIC_URL}}js/jquery.autocomplete.js" type="text/javascript" charset="utf-8"></script>
14 <script src="{{STATIC_URL}}js/jquery.elastic.js" type="text/javascript" charset="utf-8"></script>
15 <script src="{{STATIC_URL}}js/button_scripts.js" type="text/javascript" charset="utf-8"></script>
16 <script src="{{STATIC_URL}}js/xslt.js" type="text/javascript" charset="utf-8"></script>
17 <script src="{{STATIC_URL}}js/main.js" type="text/javascript" charset="utf-8"></script>
20 {% block maincontent %}
21 <div id="loading-overlay">
22 <div id="loading-message"><img src="{{STATIC_URL}}img/spinner.gif" /><p>Ładowanie</p></div>
24 <div id="document-meta" style="display:none">
25 {% for k, v in document.meta.items %}
26 <div class="{{ k }}">{{ v}}</div>
30 <div id="tools" style="float: right;">
31 {% if user.is_authenticated %}
32 Zalogowany jako {{ user }} | <a href="{% url logout %}">Wyloguj</a> |
34 <a href="{% url login %}?next={{ request.path }}">Zaloguj się</a> |
36 Wersja: <span id="document-revision">{{ document.revision }}</span> <button style="margin-left: 6px" id="save-button">Zapisz</button></div>
37 <h1><a href="{% url wiki.views.document_list %}">Platforma</a></h1>
39 <li id="simple-view-tab"><span id="document-name">{{ document.name }}</span></li>
40 <li id="source-view-tab" class="active">Kod źródłowy</li>
42 <div style="clear: both"></div>
46 <div id="source-editor">
48 <textarea name="text" id="id_text">{{ document.plain_text }}</textarea>
49 <input type="hidden" name="name" value="{{ document.name }}" />
50 <input type="hidden" name="author" value="annonymous" />
51 <input type="hidden" name="comment" value="no comment" />
52 <input type="hidden" name="revision" value="{{ document.revision }}" />
54 <div id="simple-editor" style="display: none">
56 <button id="insert-theme-button">Wstaw motyw</button> <button id="insert-annotation-button">Wstaw przypis</button>
57 <div class="toolbar-end"> </div>
59 <div id="html-view" class="htmlview">
63 <div class="vsplitbar"> </div>
66 <button class="previous-page">⇽ Poprzednia</button>
67 <input type="text" size="3" maxlength="3" value="1" class="page-number" />
68 <button class="next-page">Następna ⇾</button>
69 <button class="zoom-in">Powiększ</button>
70 <button class="zoom-out">Pomniejsz</button>
71 <button class="change-gallery">Zmień galerię</button>
72 <div class="toolbar-end"> </div>
74 <div class="toolbar" id="change-gallery-toolbar">
75 <input type="text" value="" class="chosen-gallery" />
76 <button class="change-gallery-ok">Zmień galerię</button>
77 <button class="change-gallery-cancel">Anuluj</button>
78 <div class="toolbar-end"> </div>
80 <div class="gallery-image">
85 <div id="save-dialog" style="display: none; text-align: left">
86 <label for="komentarz" style="display: block">Opis zmian:</label>
87 <textarea name="komentarz" id="komentarz" style="display: block; width: 100%"></textarea>
88 <button id="save-ok">Zapisz</button> <button id="save-cancel">Anuluj</button>