Librarian in regular requirements.
[redakcja.git] / apps / wiki / templates / wiki / tabs / summary_view.html
index 96191fd..49ad5fe 100644 (file)
@@ -3,16 +3,18 @@
     <!-- <div class="toolbar">
     </div> -->
     <div id="summary-view">
-       {% if revision %}
        <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 %}"}{% endif %}></p>
+                       {% 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>
-       {% endif %}
 
                <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>
                        <label>{% trans "Current version" %}:</label>
                        {{ chunk.revision }} ({{ chunk.head.created_at }})
+               </p>
                <p>
                        <label>{% trans "Last edited by" %}:</label>
                        {{ 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>