{% extends 'django_knowledge/inner.html' %} {% load i18n %} {% load url from future %} {% load knowledge_tags %} {% block title %}Showing {{ questions.paginator.count }} results{% if search %} for {{ search }}{% endif %}{% if category %} in {{ category.title }} category{% endif %}{% endblock title %} {% block knowledge_widgets %}
{# dunno how to do translation on this nasty block... #}

Showing {{ counter }} results{% if search %} for {{ search }}{% endif %}{% if category %} in {{ category.title }} category{% endif %}:


{% include 'django_knowledge/question_list.html' with questions=questions.object_list %} {% if not questions.paginator.count %}

{% trans "No results found." %}

{% endif %}
{% if questions.has_previous %} ← {% trans "previous" %} {% endif %}   {% blocktrans with number=questions.number pages=questions.paginator.num_pages %}page {{ number }} of {{ page }}{% endblocktrans %}   {% if questions.has_next %} {% trans "next" %} → {% endif %}
{% if form and paginator.count < 5 %}

{% trans "Ask a Question" %}


{% url "knowledge_ask" as form_url %} {% include "django_knowledge/form.html" with submit_value="Submit this support request" submit_and="and we'll get back to you as soon as possible." submit_url=form_url %}
{% endif %} {% endblock knowledge_widgets %}