8ef27735c44c602379b1f85d64ece37019ddc79c
[prawokultury.git] / questions / templates / questions / question_list.html
1 {% extends "base.html" %}
2 {% load url from future %}
3 {% load pagination_tags fnp_prevnext %}
4 {% load compressed %}
5 {% load chunks %}
6
7 {% block titleextra %}Pierwsza pomoc w prawie autorskim :: {% endblock %}
8 {% block body %}
9 <h1>Pierwsza pomoc w prawie autorskim: zapytaj prawnika</h1>
10
11 <div class="normal">
12 {% chunk 'questions_list_info' %}
13
14 <div id="questions-filter">
15     <h2>Filtruj pytania</h2>
16     Wybierz kategorię tematów:
17     <div id="questions-categories">
18     {% if has_uncategorized_tags %}
19     <a href="#" {% if tag and not tag.category %}class="selected"{% endif %} data-category-id="0">bez kategorii</a>
20     {% endif %}
21     {% for category in tag_categories %}
22             <a href="#" style="font-size: {{category.cloud_size}}em;" {% if tag.category == category %}class="selected"{% endif %} data-category-id="{{category.id}}">{{category}}</a>
23     {% endfor %}
24     </div>
25
26     <div id="questions-subjects">
27     {% for category_id, tag_list in tag_lists.items %}
28         <div class="questions-tags-group" data-category-id="{{category_id}}">
29         Wyświetl tylko na temat:
30         {% for atag in tag_list %}
31             {% if atag == tag %}<strong style="font-size: {{atag.cloud_size}}em;">{{ atag }}</strong>
32             {% else %}<a href="?tag={{ atag.slug }}" style="font-size: {{atag.cloud_size}}em;">{{ atag }}</a>
33             {% endif %}
34         {% endfor %}
35         </div>
36     {% endfor %}
37     </div>
38     <div>
39         {% if tag %}<a href=".">Pokaż wszystkie pytania</a>{% endif %}
40     </div>
41 </div>
42
43 <h2>Odpowiedzi na już zadane pytania
44     {% if tag %}na temat: {{ tag }}{% endif %}
45     ({{ object_list.count }}):</h2>
46
47 {% autopaginate object_list 20 %}
48
49 <ul class='questions'>
50 {% for question in object_list %}
51     <li><a href="{{ question.get_absolute_url }}">{{ question|truncatewords:50 }}</a>
52     </li>
53 {% endfor %}
54 </ul>
55
56 </div>
57
58 {% prevnext %}
59
60
61 {% endblock %}
62
63 {% block extra_css %}
64     {% compressed_css 'questions' %}
65 {% endblock %}
66
67 {% block extra_js %}
68     {% compressed_js 'questions' %}
69 {% endblock %}