{% extends "questions/base.html" %} {% from "dashboards/includes/macros.html" import topic_selector, sort_questions %} {% from 'includes/common_macros.html' import scam_banner %} {% set classes = 'questions' %} {% if all_products %} {% set page_title = _('All Products') %} {% elif multiple_products %} {% set page_title = _('Multiple Products') %} {% else %} {% set page_title = pgettext('DB: products.Product.title', products[0].title) %} {% set logo = pgettext('DB: products.Product.image_alternate_url', products[0].image_alternate_url) %} {% endif %} {# L10n: {title} will normally be the Product title, but sometimes can be 'All Products' or 'Multiple Products' #} {% set title = _('{title} Community Forum')|f(title=page_title) %} {% set crumbs = [(url('questions.home'), _('Community Forums')), (None, page_title)] %} {% if topics %} {% set canonical_url = canonicalize(viewname='questions.list_by_topic', topic_slug=topics[0].slug)|urlparams(None, request.GET) %} {% else %} {% set canonical_url = canonicalize(viewname='questions.list', product_slug=product_slug)|urlparams(None, request.GET) %} {% endif %} {% if questions.number > 1 %} {% set canonical_url = canonical_url|urlparams(page=questions.number) %} {% endif %} {% set meta = (('robots', 'noindex'),) %} {% set ga_content_group = "support-forum-home" %} {# This takes kwargs, even though it doesn't say so, because it uses them. It's a Jinja Magic thing. #} {% macro questions_url() %} {% if topic_navigation %} {{ url('questions.list_by_topic', topic_slug)|urlparams(None, request.GET, **kwargs) }} {% else %} {{ url('questions.list', product_slug)|urlparams(None, request.GET, **kwargs) }} {% endif %} {% endmacro %} {% block breadcrumbs %}{% endblock %} {% block masthead %}
{{ scam_banner() }} {% if logo %} {% endif %}
{% endblock %} {% block content %} {% if tags %}
{{ _('Showing questions tagged:') }} {{ _('Show all questions') }}
{% endif %} {% if show != "spam" %} {% endif %}
{% if questions.object_list %}
{% for question in questions.object_list %}
    {% if question.is_solved %}
  • {{ _('Solved') }}
  • {% endif %} {% if question.is_contributor(user) %}
  • {{ _('Contributed') }}
  • {% endif %} {% if question.is_locked %}
  • {{ _('Locked') }}
  • {% endif %} {% if question.is_archived %}
  • {{ _('Archived') }}
  • {% endif %}

{{ question.title }}

{{ question.content_parsed|truncate_question(170, question.content_parsed)|safe }}

{{ _('Asked by {username} {when}')|fe(user_url=profile_url(question.creator), username=display_name(question.creator), when=question.created|timesince) }}

{% if question.solution %}

{{ _('Answered by {username} {when}')|fe(user_url=profile_url(question.solution.creator), username=display_name(question.solution.creator), when=question.solution.created|timesince) }}

{% else %} {% if question.last_answer %}

{{ _('Last reply by {username} {when}')|fe(reply_url=question.last_answer.get_absolute_url(), user_url=profile_url(question.last_answer.creator), username=display_name(question.last_answer.creator), when=question.last_answer.created|timesince) }}

{% endif %} {% endif %}
{% endfor %}
{{ questions|quick_paginator }} {% else %}

{{ _('There are no questions that match the current filter settings.') }}

{% endif %}
{% endblock %} {% block side %} {% if show != "spam" %}
{% endif %} {% if request.user.is_authenticated %}
{% endif %} {% endblock %}