8a57769e7aaf4f5cf8a2bcb96c64b6f963acc385
[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         <div class="summary-cover-area">
7                 <p><img id="summary-cover" class="book-cover"
8                         {% if revision %}
9                              src="{% url 'cover_preview' chunk.book.slug chunk.slug revision %}"
10                         {% else %}
11                              src="{% url 'cover_preview' chunk.book.slug chunk.slug %}"
12                         {% endif %}></p>
13                 <p><button id="summary-cover-refresh">{% trans "Refresh from working copy" %}</button></p>
14                 </div>
15
16                 <h2>
17                         <label for="title">{% trans "Title" %}:</label>
18                         <span data-ui-editable="true" data-edit-target="meta.displayTitle"
19                         >{{ chunk.pretty_name }}</span>
20                 </h2>
21         <p><a href="{{ chunk.book.get_absolute_url }}">{% trans "Go to the book's page" %}</a>
22         </p>
23                 <p>
24                         <label>{% trans "Document ID" %}:</label>
25                         <span>{{ chunk.book.slug }}/{{ chunk.slug }}</span>
26                 </p>
27                 <p>
28                         <label>{% trans "Current version" %}:</label>
29                         {{ chunk.revision }} ({{ chunk.head.created_at }})
30                 <p>
31                         <label>{% trans "Last edited by" %}:</label>
32                         {{ chunk.head.author }}
33                 </p>
34                 <p>
35                         <label for="gallery">{% trans "Link to gallery" %}:</label>
36                         <span data-ui-editable="true" data-edit-target="meta.galleryLink"
37                         >{{ chunk.book.gallery }}</span>
38                 </p>
39                 <p>
40                     <label>{% trans "Characters in document" %}:</label>
41                     <span id="charcount"></span> (<span id="charcount_pages"></span> {% trans "pages" %}<span id="charcount_untagged">, {% trans "untagged" %}</span>)
42                 </p>
43         </div>
44 </div>