woblink last steps
[redakcja.git] / src / documents / templates / documents / book_detail.html
index a2dea02..273b3a7 100644 (file)
                         Opublikuj na {{ shop.name }}
                       </button>
                     </form>
-                    {% if shop.comment %}
+                    {% for info in shop.info %}
                       <div class="alert alert-info">
-                        {{ shop.comment }}
+                        {{ info }}
                       </div>
-                    {% endif %}
+                    {% endfor %}
                   {% else %}
                     {% for error in shop.errors %}
                       <div class="alert alert-danger">
   </div>
 
 
-  {% if doc %}
+  {% if stats %}
     <div class="card mt-4">
       <div class="card-header">
         <h2>{% trans "Statistics" %}</h2>
             </tr>
           </thead>
           <tbody>
-            {% with stats=doc.get_statistics %}
-              {% include 'documents/book_stats.html' with book=doc stats=stats depth=0 %}
-          {% endwith %}
+            {% include 'documents/book_stats.html' with book=doc stats=stats depth=0 %}
         </tbody>
       </table>
     </div>