Delivering factors for tags/categories to the template
[prawokultury.git] / questions / templates / questions / question_list.html
index f458772..b6cea5a 100755 (executable)
@@ -27,6 +27,13 @@ autorem szeregu publikacji naukowych poświęconych korzystaniu z
 technologii informacyjno-komunikacyjnych oraz posiada wieloletnie
 doświadczenie doradcze w tej tematyce.</p>
 
+Kategorie:
+<div>
+{% for category in tag_categories %}
+        <span style="font-size: {{category.factor}}em;">{{category}}</span>
+{% endfor %}
+</div>
+
 Tematy: 
 {% if tag %}<a href=".">wszystkie</a>
 {% else %}<strong>wszystkie</strong>
@@ -47,12 +54,6 @@ Tematy:
 <ul class='questions'>
 {% for question in object_list %}
     <li><a href="{{ question.get_absolute_url }}">{{ question }}</a>
-        {% if question.tags.all.count %}
-        <br/>Tematy: 
-        {% for tag in question.tags.all %}
-            <a href="?tag={{ tag.slug }}">{{ tag }}</a>{% if not forloop.last %} / {% endif %}
-        {% endfor %}
-        {% endif %}
     </li>
 {% endfor %}
 </ul>