Prevented one form of DoS attack by limiting number of tags in query to 6.
[wolnelektury.git] / wolnelektury / templates / catalogue / main_page.html
index 6b3ae8a..94eba67 100644 (file)
                     <h2>Autorzy</h2>
                     {% folded_tag_list categories.author %}
                 {% endif %}
                     <h2>Autorzy</h2>
                     {% folded_tag_list categories.author %}
                 {% endif %}
-            
-                {% if categories.epoch %}
-                    <h2>Epoki</h2>
-                    {% folded_tag_list categories.epoch %}
-                {% endif %}
-            
                 {% if categories.kind %}
                     <h2>Rodzaje</h2>
                     {% folded_tag_list categories.kind %}
                 {% endif %}
                 {% if categories.kind %}
                     <h2>Rodzaje</h2>
                     {% folded_tag_list categories.kind %}
                 {% endif %}
-            
                 {% if categories.genre %}
                     <h2>Gatunki literackie</h2>
                     {% folded_tag_list categories.genre %}
                 {% endif %}
                 {% if categories.genre %}
                     <h2>Gatunki literackie</h2>
                     {% folded_tag_list categories.genre %}
                 {% endif %}
+                {% if categories.epoch %}
+                    <h2>Epoki</h2>
+                    {% folded_tag_list categories.epoch %}
+                {% endif %}
             </div>
             <div id="themes-list">
                 {% if fragment_tags %}
             </div>
             <div id="themes-list">
                 {% if fragment_tags %}
-                    <h2>Motywy</h2>
+                    <h2>Motywy i tematy</h2>
                     {% folded_tag_list fragment_tags %}
                 {% endif %}
                     {% folded_tag_list fragment_tags %}
                 {% endif %}
+                <h2>Rodziny motywów</h2>
+                <div class="shown-tags">
+                    <ol>
+                        <li>świat w perspektywie etycznej
+                            <span class="subcategories">    
+                                <a href="/katalog/dobro/">Dobro</a>, <a href="/katalog/zlo">Zło</a>,
+                                <a href="/katalog/sumienie/">Sumienie</a>, <a href="/katalog/kuszenie/">Kuszenie</a>
+                            </span>
+                        </li>
+                        <li>polityczny obraz świata
+                            <span class="subcategories">
+                                <a href="/katalog/panstwo/">Państwo</a>, <a href="/katalog/obywatel/">Obywatel</a>,
+                                <a href="/katalog/patriota/">Patriota</a>, <a href="/katalog/ojczyzna/">Ojczyzna</a>
+                            </span>
+                        </li>
+                        <li>przyroda
+                            <span class="subcategories">
+                                <a href="/katalog/natura/">Natura</a>, <a href="/katalog/zywioly/">Żywioły</a>,
+                                <a href="/katalog/ogien/">Ogień</a>, <a href="/katalog/ziemia/">Ziemia</a>
+                            </span>
+                        </li>
+                    </ol>
+                    <p><a href="#" class="show-all-tags">Zobacz więcej</a></p>
+                </div>
+                <div class="all-tags">
+                    <ol>
+                        <li>świat w perspektywie etycznej
+                            <span class="subcategories">    
+                                <a href="/katalog/dobro/">Dobro</a>, <a href="/katalog/zlo">Zło</a>,
+                                <a href="/katalog/sumienie/">Sumienie</a>, <a href="/katalog/kuszenie/">Kuszenie</a>
+                            </span>
+                        </li>
+                        <li>polityczny obraz świata
+                            <span class="subcategories">
+                                <a href="/katalog/panstwo/">Państwo</a>, <a href="/katalog/obywatel/">Obywatel</a>,
+                                <a href="/katalog/patriota/">Patriota</a>, <a href="/katalog/ojczyzna/">Ojczyzna</a>
+                            </span>
+                        </li>
+                        <li>przyroda
+                            <span class="subcategories">
+                                <a href="/katalog/natura/">Natura</a>, <a href="/katalog/zywioly/">Żywioły</a>,
+                                <a href="/katalog/ogien/">Ogień</a>, <a href="/katalog/ziemia/">Ziemia</a>
+                            </span>
+                        </li>
+                    </ol>
+                </div>
             </div>
             <div class="clearboth"></div>
         </div>
             </div>
             <div class="clearboth"></div>
         </div>