clean dev
[wolnelektury.git] / src / wolnelektury / templates / main_page.html
index 44f05a8..564f415 100755 (executable)
                 {% ssi_include 'catalogue_book_mini' pk=b.pk %}
             {% endfor %}
             </div>
-            <div class="note white-box normal-text" style="font-size: 18px">
-            i wiele innych książek, wierszy, obrazów, audiobooków…
-            </div>
+            <a href="{% url "book_list" %}">
+                <div class="note white-box normal-text" style="font-size: 18px">
+                    i wiele innych książek, wierszy, obrazów, audiobooków…
+                </div>
+            </a>
         </div>
     </section>
 
@@ -43,6 +45,7 @@
         <a class="more" href="{% url 'theme_catalogue' %}">Zobacz katalog motywów</a>
     </section>
 
+    {% comment %}
     <section class="tag-box-section">
         <h1>Autorzy</h1>
       <a class="tag-box" href="{{ author.get_absolute_url }}">
       </a>
         <a class="more" href="{% url 'epoch_catalogue' %}">Zobacz katalog epok</a>
     </section>
-
-    <section>
-        <h1>Kolekcje</h1>
-        {% ssi_include 'catalogue_collection_box' pk=collection.pk %}
-        <a class="more" href="{% url 'catalogue_collections' %}">Zobacz katalog kolekcji</a>
-    </section>
+    {% endcomment %}
+
+    {% if collection %}
+        <section>
+            <h1>Kolekcje</h1>
+            {% ssi_include 'catalogue_collection_box' pk=collection.pk %}
+            <a class="more" href="{% url 'catalogue_collections' %}">Zobacz katalog kolekcji</a>
+        </section>
+    {% endif %}
 
     <section>
         <h1>{% trans "Recent publications" %}</h1>