49ad5fe7c6524eccdd24de16bc9f83f1e5e29322
[redakcja.git] / src / 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>{% 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                 <p>
32                         <label>{% trans "Last edited by" %}:</label>
33                         {{ chunk.head.author }}
34                 </p>
35                 <p>
36                         <label>{% trans "Link to gallery" %}:</label>
37                         <span data-ui-editable="true" data-edit-target="meta.galleryLink"
38                         >{{ chunk.book.gallery }}</span>
39                 </p>
40                 <p>
41                     <label>{% trans "Characters in document" %}:</label>
42                     <span id="charcount"></span> (<span id="charcount_pages"></span> {% trans "pages" %}<span id="charcount_untagged">, {% trans "untagged" %}</span>)
43                 </p>
44         </div>
45 </div>