fix
[redakcja.git] / apps / wiki / templates / wiki / tabs / summary_view.html
1 {% load i18n %}
2 <div id="summary-view-editor" class="editor" style="display: none">
3     <!-- <div class="toolbar">
4     </div> -->
5     <div id="summary-view">
6         {% if revision %}
7         <div class="summary-cover-area">
8                 <p><img id="summary-cover" class="book-cover"
9                         {% if revision }src="{% url cover_preview chunk.book.slug chunk.slug revision %}"}{% endif %}></p>
10                 <p><button id="summary-cover-refresh">{% trans "Refresh from working copy" %}</button></p>
11                 </div>
12         {% endif %}
13
14                 <h2>
15                         <label for="title">{% trans "Title" %}:</label>
16                         <span data-ui-editable="true" data-edit-target="meta.displayTitle"
17                         >{{ chunk.pretty_name }}</span>
18                 </h2>
19         <p><a href="{{ chunk.book.get_absolute_url }}">{% trans "Go to the book's page" %}</a>
20         </p>
21                 <p>
22                         <label>{% trans "Document ID" %}:</label>
23                         <span>{{ chunk.book.slug }}/{{ chunk.slug }}</span>
24                 </p>
25                 <p>
26                         <label>{% trans "Current version" %}:</label>
27                         {{ chunk.revision }} ({{ chunk.head.created_at }})
28                 <p>
29                         <label>{% trans "Last edited by" %}:</label>
30                         {{ chunk.head.author }}
31                 </p>
32                 <p>
33                         <label for="gallery">{% trans "Link to gallery" %}:</label>
34                         <span data-ui-editable="true" data-edit-target="meta.galleryLink"
35                         >{{ chunk.book.gallery }}</span>
36                 </p>
37                 <p>
38                     <label>{% trans "Characters in document" %}:</label>
39                     <span id="charcount"></span> (<span id="charcount_pages"></span> {% trans "pages" %}<span id="charcount_untagged">, {% trans "untagged" %}</span>)
40                 </p>
41         </div>
42 </div>