{% extends "base.html" %}
{% load url from future %}
+{% load pagination_tags fnp_prevnext %}
+{% load compressed %}
{% block "titleextra" %}Pierwsza pomoc w prawie autorskim :: {% endblock %}
{% block "body" %}
technologii informacyjno-komunikacyjnych oraz posiada wieloletnie
doświadczenie doradcze w tej tematyce.</p>
-<h2>Odpowiedzi na już zadane pytania:</h2>
+<div id="questions-filter">
+
+ {% if tag %}<a href=".">Wyświetl wszystkie</a> lub w {% else %}W{% endif %}ybierz kategorię tematów:
+ <div id="questions-categories">
+ <a href="#" data-category-id="0">bez kategorii</a>
+ {% for category in tag_categories %} /
+ <a href="#" style="font-size: {{category.factor}}em;" {% if tag.category == category %}class="selected"{% endif %} data-category-id="{{category.id}}">{{category}}</a>
+ {% endfor %}
+ </div>
+
+ <div id="questions-subjects">
+ {% for category_id, tag_list in tag_lists.items %}
+ <div class="questions-tags-group" data-category-id="{{category_id}}">
+ Wyświetl tylko na temat:
+ {% for atag in tag_list %} {% if not forloop.first %}/{% endif %}
+ {% if atag == tag %}<strong>{{ atag }}</strong>
+ {% else %}<a href="?tag={{ atag.slug }}">{{ atag }}</a>
+ {% endif %}
+ {% endfor %}
+ </div>
+ {% endfor %}
+ </div>
+</div>
+
+<h2>Odpowiedzi na już zadane pytania
+ {% if tag %}na temat: {{ tag }}{% endif %}
+ ({{ object_list.count }}):</h2>
+
+{% autopaginate object_list 20 %}
<ul class='questions'>
{% for question in object_list %}
- <li><a href="{{ question.get_absolute_url }}">{{ question }}</a></li>
+ <li><a href="{{ question.get_absolute_url }}">{{ question }}</a>
+ </li>
{% endfor %}
</ul>
+
</div>
+{% prevnext %}
+
+
{% endblock %}
+
+{% block "extra_css" %}
+ {% compressed_css 'questions' %}
+{% endblock %}
+
+{% block "extra_js" %}
+ {% compressed_js 'questions' %}
+{% endblock %}
\ No newline at end of file