0bdeb1269f9da0dd82464aba05f897ad7a7a673c
[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 id="summary-view">
4         <div class="summary-cover-area">
5                 <p><img id="summary-cover" class="book-cover"
6                         {% if revision %}
7                              src="{% url 'cover_preview' chunk.book.slug chunk.slug revision %}"
8                         {% else %}
9                              src="{% url 'cover_preview' chunk.book.slug chunk.slug %}"
10                         {% endif %}></p>
11                 <p><button class="btn btn-info" id="summary-cover-refresh">{% trans "Refresh from working copy" %}</button></p>
12                 </div>
13
14                 <h2>
15                         <label>{% 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                 <p>
30                         <label>{% trans "Last edited by" %}:</label>
31                         {{ chunk.head.author }}
32                 </p>
33                 <p>
34                         <label>{% trans "Link to gallery" %}:</label>
35                         <span data-ui-editable="true" data-edit-target="meta.galleryLink"
36                         >{{ chunk.book.gallery }}</span>
37                 </p>
38                 <p>
39                     <label>{% trans "Characters in document" %}:</label>
40                     <span id="charcounts_text">
41                             <br><span id="charcount"></span> (<span id="charcount_pages"></span> {% trans "pages" %}, {% trans "without footnotes and themes" %})
42                             <br><span id="charcount_full"></span> (<span id="charcount_full_pages"></span> {% trans "pages" %}, {% trans "with footnotes and themes" %})
43                     </span>
44                     <span id="charcounts_raw">
45                             <br><span id="charcount_raw"></span> (<span id="charcount_raw_pages"></span> {% trans "pages" %}, {% trans "untagged" %})
46                     </span>
47                 </p>
48         </div>
49 </div>