341a5ef6aa2372b80fd3f9beb01ee8eaa1af79d8
[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="charcounts_text">
43                             <br><span id="charcount"></span> (<span id="charcount_pages"></span> {% trans "pages" %}, {% trans "without footnotes and themes" %})
44                             <br><span id="charcount_full"></span> (<span id="charcount_full_pages"></span> {% trans "pages" %}, {% trans "with footnotes and themes" %})
45                     </span>
46                     <span id="charcounts_raw">
47                             <br><span id="charcount_raw"></span> (<span id="charcount_raw_pages"></span> {% trans "pages" %}, {% trans "untagged" %})
48                     </span>
49                 </p>
50         </div>
51 </div>