X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/341bba6a6521423f7d26115fe86195a551702cdc..ec4f043363f5a71483cbd8c143c84cb8ca78fc02:/questions/templates/questions/question_list.html diff --git a/questions/templates/questions/question_list.html b/questions/templates/questions/question_list.html index c21f888..ccf2ad7 100755 --- a/questions/templates/questions/question_list.html +++ b/questions/templates/questions/question_list.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% load url from future %} {% load pagination_tags fnp_prevnext %} +{% load compressed %} {% block "titleextra" %}Pierwsza pomoc w prawie autorskim :: {% endblock %} {% block "body" %} @@ -27,16 +28,34 @@ autorem szeregu publikacji naukowych poÅwiÄconych korzystaniu z technologii informacyjno-komunikacyjnych oraz posiada wieloletnie doÅwiadczenie doradcze w tej tematyce.</p> -Tematy: -{% if tag %}<a href=".">wszystkie</a> -{% else %}<strong>wszystkie</strong> -{% endif %} - -{% for atag in tags %} / - {% if atag == tag %}<strong>{{ atag }}</strong> - {% else %}<a href="?tag={{ atag.slug }}">{{ atag }}</a> +<div id="questions-filter"> + <h2>Filtruj pytania</h2> + Wybierz kategoriÄ tematów: + <div id="questions-categories"> + {% if has_uncategorized_tags %} + <a href="#" {% if tag and not tag.category %}class="selected"{% endif %} data-category-id="0">bez kategorii</a> {% endif %} -{% endfor %} + {% for category in tag_categories %} + <a href="#" style="font-size: {{category.cloud_size}}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 atag == tag %}<strong style="font-size: {{atag.cloud_size}}em;">{{ atag }}</strong> + {% else %}<a href="?tag={{ atag.slug }}" style="font-size: {{atag.cloud_size}}em;">{{ atag }}</a> + {% endif %} + {% endfor %} + </div> + {% endfor %} + </div> + <div> + {% if tag %}<a href=".">Pokaż wszystkie pytania</a>{% endif %} + </div> +</div> <h2>Odpowiedzi na już zadane pytania {% if tag %}na temat: {{ tag }}{% endif %} @@ -57,3 +76,11 @@ Tematy: {% endblock %} + +{% block "extra_css" %} + {% compressed_css 'questions' %} +{% endblock %} + +{% block "extra_js" %} + {% compressed_js 'questions' %} +{% endblock %}