{% extends "base.html" %} {% load extra_tags %} {% load i18n %} {% load humanize %} {% load extra_filters %} {% load smart_if %} {% block title %}{% spaceless %}{% trans "Questions" %}{% endspaceless %}{% endblock %} {% block forejs %} {% endblock %} {% block content %}
{% comment %}
{% if searchtag %} {% trans "Found by tags" %} {% else %} {% if searchtitle %} {% if settings.USE_SPHINX_SEARCH %} {% trans "Search results" %} {% else %} {% trans "Found by title" %} {% endif %} {% else %} {% if is_unanswered %} {% trans "Unanswered questions" %} {% else %} {% trans "All questions" %} {% endif %} {% endif %} {% endif %}

{% endcomment %}
{% 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 %}
{% if questions_count > 0 %}

{% if author_name or search_tags or query %} {% blocktrans count questions_count as cnt with questions_count|intcomma as q_num %} One 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 %}
{% include "question_list.html" %} {% 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 %}

{% trans "Contributors" %}

{% for person in contributors %} {% gravatar person 48 %} {% endfor %}
{% endif %} {% if request.user.is_authenticated %} {% include "tag_selector.html" %} {% endif %} {% if tags %}

{% trans "Related tags" %}

{% for tag in tags %} × {{ tag.used_count|intcomma }}
{% endfor %}
{% endif %} {% endblock %}