{% extends "base.html" %} {% load extra_tags %} {% load i18n %} {% load humanize %} {% load extra_filters %} {% load smart_if %} {% load cache %} {% block title %}{% spaceless %}{% trans "Questions" %}{% endspaceless %}{% endblock %} {% block forejs %} {% endblock %} {% block content %} {% get_current_language as LANGUAGE_CODE %} {% cache 600 "scope_sort_tabs" search_tags request.user scope sort query context.page context.page_size LANGUAGE_CODE %}
{% trans "In:" %} {% trans "all" %} {% trans "unanswered" %} {% if request.user.is_authenticated %} {% trans "favorite" %} {% endif %}
{% trans "Sort by:" %} {% if sort == "oldest" %} {% trans "oldest" %} {% else %} {% if sort == "latest" %} {% trans "newest" %} {% else %} {% trans "newest" %} {% endif %} {% endif %} {% if sort == "inactive" %} {% trans "inactive" %} {% else %} {% if sort == "active" %} {% trans "active" %} {% else %} {% trans "active" %} {% endif %} {% endif %} {% if sort == "coldest" %} {% trans "less answers" %} {% else %} {% if sort == "hottest" %} {% trans "more answers" %} {% else %} {% trans "more answers" %} {% endif %} {% endif %} {% if sort == "leastvoted" %} {% trans "unpopular" %} {% else %} {% if sort == "mostvoted" %} {% trans "popular" %} {% else %} {% trans "popular" %} {% endif %} {% endif %}
{% endcache %} {% if questions_count > 0 %}

({% trans {% trans "rss feed" %})

{% if author_name or search_tags or query %} {% blocktrans count questions_count as cnt with questions_count|intcomma as q_num %} {{q_num}} question found {% plural %} {{q_num}} questions found {% endblocktrans %} {% else %} {% blocktrans count questions_count as cnt with questions_count|intcomma as q_num %}{{q_num}} question{% plural %}{{q_num}} questions{% endblocktrans %} {% endif %} {% joinitems using ', ' %} {% if author_name %} {% blocktrans %}with {{author_name}}'s contributions{% endblocktrans %} {% endif %} {% separator %} {% if search_tags %} {% trans "tagged" %} "{{ search_tags|join:"\", \"" }}" {% endif %} {% endjoinitems %}

{% if author_name or search_tags or query %}

{% trans "Search tips:" %} {% ifmany query search_tags author_name %} {% joinitems using ', ' ' or ' %} {% if author_name %} {% trans "reset author" %} {% endif %} {% separator %} {% if search_tags %} {% trans "reset tags" %} {% endif %} {% separator %} {% ifmany query search_tags author_name %} {% trans "start over" %} {% endifmany %} {% endjoinitems %} {% else %} {% trans "start over" %} {% endifmany %} {% trans " - to expand, or dig in by adding more tags and revising the query." %}

{% else %}

{% trans "Search tip:" %} {% trans "add tags and a query to focus your search" %}

{% endif %}
{% endif %}
{% get_current_language as LANGUAGE_CODE %} {% cache 60 questions search_tags scope sort query context.page context.page_size LANGUAGE_CODE %} {% for question in questions.object_list %}
{{question.score|humanize_counter}}
{% blocktrans count question.score as cnt %}vote{% plural %}votes{% endblocktrans %}
{% comment %}
{% endcomment %}
{{question.answer_count|humanize_counter}}
{% blocktrans count question.answer_count as cnt %}answer{% plural %}answers{% endblocktrans %}
{{question.view_count|humanize_counter}}
{% blocktrans count question.view_count as cnt %}view{% plural %}views{% endblocktrans %}

{{question.title}}

{% diff_date question.last_activity_at %} {% if question.last_activity_by %} {{ question.last_activity_by }} {% get_score_badge question.last_activity_by %} {% endif %}
{% for tag in question.tagname_list %} {% endfor %}
{% endfor %} {% endcache %} {% comment %}todo: fix css here{% endcomment %} {% if questions_count == 0 %} {% comment %}todo: add tips to widen selection{% endcomment%}

{% if scope == "unanswered" %} {% trans "There are no unanswered questions here" %} {% endif %} {% if scope == "favorite" %} {% trans "No favorite questions here. " %} {% trans "Please start (bookmark) some questions when you visit them" %} {% endif %}

{% if query or search_tags or author_name %}

{% trans "You can expand your search by " %} {% ifmany query search_tags author_name %} {% joinitems using ', ' ' or ' %} {% if author_name %} {% trans "resetting author" %} {% endif %} {% separator %} {% if search_tags %} {% trans "resetting tags" %} {% endif %} {% separator %} {% ifmany query search_tags author_name %} {% trans "starting over" %} {% endifmany %} {% endjoinitems %} {% else %} {% trans "starting over" %} {% endifmany %}

{% endif %}

{% trans "Please always feel free to ask your question!" %}

{% else %}

{% trans "Did not find what you were looking for?" %} {% trans "Please, post your question!" %}

{% endif %}
{% endblock %} {% block tail %} {% if questions_count > 10 %}{%comment%}todo: remove magic number{%endcomment%}
{% cnprog_paginator context %}
{% cnprog_pagesize context %}
{% endif %} {% endblock %} {% block sidebar %} {% if contributors %} {% get_current_language as LANGUAGE_CODE %} {% cache 600 contributors search_tags scope sort query context.page context.page_size LANGUAGE_CODE %}

{% trans "Contributors" %}

{% spaceless %} {% for person in contributors %} {% gravatar person 48 %} {% endfor %} {% endspaceless %}
{% endcache %} {% endif %} {% if request.user.is_authenticated %} {% include "tag_selector.html" %} {% endif %} {% if tags %} {% get_current_language as LANGUAGE_CODE %} {% cache 600 tags search_tags scope sort query context.page context.page_size LANGUAGE_CODE %}

{% trans "Related tags" %}

{% endcache %} {% endif %} {% endblock %}