1 {% extends "base.html" %}
 
   2 {% load url from future %}
 
   3 {% load pagination_tags fnp_prevnext %}
 
   7 {% block "titleextra" %}Pierwsza pomoc w prawie autorskim :: {% endblock %}
 
   9 <h1>Pierwsza pomoc w prawie autorskim: zapytaj prawnika</h1>
 
  12 {% chunk 'questions_list_info' %}
 
  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>
 
  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>
 
  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>
 
  39         {% if tag %}<a href=".">Pokaż wszystkie pytania</a>{% endif %}
 
  43 <h2>Odpowiedzi na już zadane pytania
 
  44     {% if tag %}na temat: {{ tag }}{% endif %}
 
  45     ({{ object_list.count }}):</h2>
 
  47 {% autopaginate object_list 20 %}
 
  49 <ul class='questions'>
 
  50 {% for question in object_list %}
 
  51     <li><a href="{{ question.get_absolute_url }}">{{ question|truncatewords:50 }}</a>
 
  63 {% block "extra_css" %}
 
  64     {% compressed_css 'questions' %}
 
  67 {% block "extra_js" %}
 
  68     {% compressed_js 'questions' %}