<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 %}
{% 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 %}
category_click_count = uncategorized_tags_click_count
tag.cloud_size = get_cloud_size(tag.click_count, category_click_count)
context['tag_lists'].setdefault(tag.category.id if tag.category else 0, []).append(tag)
+ context['has_uncategorized_tags'] = 0 in context['tag_lists']
return context