cache templates
[wolnelektury.git] / src / wolnelektury / templates / main_page.html
index 44f05a8..ad34958 100755 (executable)
@@ -43,6 +43,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>
+    {% endcomment %}
 
-    <section>
-        <h1>Kolekcje</h1>
-        {% ssi_include 'catalogue_collection_box' pk=collection.pk %}
-        <a class="more" href="{% url 'catalogue_collections' %}">Zobacz katalog kolekcji</a>
-    </section>
+    {% 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>
             <li><a href="{% url 'suggest_publishing' %}" id="suggest-publishing" class="ajaxable">{% trans "Missing a book?" %}</a></li>
             <li><a href="{% url 'publish_plan' %}">{% trans "Publishing plan" %}</a></li>
             <li><a href="{% url 'api' %}">API</a></li>
-            <li><a href="{% url 'oaipmh' %}">OAI-PMH</a></li>
+            {#<li><a href="{% url 'oaipmh' %}">OAI-PMH</a></li>#}
             <li><a href="{% url 'lesmianator' %}" lang="pl">Leśmianator</a></li>
             <li><a href="http://polski.wolnelektury.pl" lang="pl">Materiały do nauki j. polskiego</a></li>