Librarian in regular requirements.
[redakcja.git] / apps / wiki / templates / wiki / tabs / summary_view.html
index 283698b..49ad5fe 100644 (file)
@@ -3,30 +3,43 @@
     <!-- <div class="toolbar">
     </div> -->
     <div id="summary-view">
-               <img class="book-cover" src="{{ STATIC_URL }}img/sample_cover.png">
+       <div class="summary-cover-area">
+               <p><img id="summary-cover" class="book-cover"
+                       {% if revision %}
+                            src="{% url 'cover_preview' chunk.book.slug chunk.slug revision %}"
+                       {% else %}
+                            src="{% url 'cover_preview' chunk.book.slug chunk.slug %}"
+                       {% endif %}></p>
+               <p><button id="summary-cover-refresh">{% trans "Refresh from working copy" %}</button></p>
+               </div>
 
                <h2>
-                       <label for="title">{% trans "Title" %}:</label>
+                       <label>{% trans "Title" %}:</label>
                        <span data-ui-editable="true" data-edit-target="meta.displayTitle"
                        >{{ chunk.pretty_name }}</span>
                </h2>
+        <p><a href="{{ chunk.book.get_absolute_url }}">{% trans "Go to the book's page" %}</a>
+        </p>
                <p>
                        <label>{% trans "Document ID" %}:</label>
                        <span>{{ chunk.book.slug }}/{{ chunk.slug }}</span>
                </p>
                <p>
                        <label>{% trans "Current version" %}:</label>
-                       {{ chunk.doc.revision }} ({{ chunk.doc.head.created_at }})
+                       {{ chunk.revision }} ({{ chunk.head.created_at }})
+               </p>
                <p>
                        <label>{% trans "Last edited by" %}:</label>
-                       {{ chunk.doc.head.author }}
+                       {{ chunk.head.author }}
                </p>
                <p>
-                       <label for="gallery">{% trans "Link to gallery" %}:</label>
+                       <label>{% trans "Link to gallery" %}:</label>
                        <span data-ui-editable="true" data-edit-target="meta.galleryLink"
                        >{{ chunk.book.gallery }}</span>
                </p>
-
-               <p><button type="button" id="publish_button">{% trans "Publish" %}</button></p>
+               <p>
+                   <label>{% trans "Characters in document" %}:</label>
+                   <span id="charcount"></span> (<span id="charcount_pages"></span> {% trans "pages" %}<span id="charcount_untagged">, {% trans "untagged" %}</span>)
+               </p>
        </div>
 </div>