{# vim: set ts=2 et sts=2 sw=2: #} {% extends "questions/base.html" %} {% from "layout/errorlist.html" import errorlist %} {% from "upload/attachments.html" import attachments_form %} {% from "includes/common_macros.html" import content_editor %} {# L10n: {q} is the title of the question. #} {% set title = _('{q} | Firefox Support Forum')|f(q=question.title) %} {% set classes = 'answers' %} {% set crumbs = [(url('questions.questions'), _('Forum')), (None, question.title)] %} {% block content %}
{% if request.GET.get('new') %}
{{ _('Thanks! Your question has been posted. See it below.') }}
{% endif %}

{{ question.title }}

{{ question.content_parsed|safe }}
{# for the speech bubble arrow #}
{% if question.updated_by %}

{{ _('Modified {datetime} by {name}')|fe(name=question.updated_by.username, datetime=datetimeformat(question.updated, format='longdatetime')) }}

{% endif %}
{% if not question.is_locked and not question.has_voted(request) %}
{{ csrf() }}
{% endif %} {% include 'questions/includes/have_problem.html' %}
{% if question.solution %}

{{ _('Solution Chosen by {user}')|f(user=question.creator) }}

{{ question.solution.creator.username }}: {{ question.solution.content_parsed|striptags()|truncate(170) }} {{ _('Read more...') }}

{# for the speech bubble arrow #}

{{ ngettext('{count} out of 1 person found this reply helpful', '{count} out of {total} people found this reply helpful', question.solution.num_votes)|f(count=question.solution.num_helpful_votes, total=question.solution.num_votes) }}

{% endif %} {% for answer in question.helpful_replies[0:2] %} {% if loop.first %}

{{ _('Other Helpful Replies') }}

{% endif %}

{{ answer.creator.username }}: {{ answer.content_parsed|striptags()|truncate(170) }} {{ _('Read more...') }}

{# for the speech bubble arrow #}

{{ ngettext('{count} out of 1 person found this reply helpful', '{count} out of {total} people found this reply helpful', answer.num_votes)|f(count=answer.num_helpful_votes, total=answer.num_votes) }}

{% if loop.last %}
{% endif %} {% endfor %}

{{ _('System Details') }}

{% block system_info %}
    {% if question.metadata.os %} {% set os = question.metadata.os %} {% set os_lower = os.lower() %}
  • {{ os }}
  • {% endif %} {% if question.metadata.ff_version %}
  • Firefox {{ question.metadata.ff_version }}
  • {% endif %}
{% endblock %}

{{ _('More system details...') }}

{{ _('Additional System Details') }}

{{ self.system_info() }} {% if question.metadata.sites_affected %}

{{ _('Sites Affected') }}

{{ question.metadata.sites_affected }}

{% endif %} {% if question.metadata.crash_id %}

{{ _('Crash ID') }}

{{ question.metadata.crash_id }}

{% endif %} {% if question.metadata.frequency %}

{{ _('This happened') }}

{{ frequencies[question.metadata.frequency] }}

{% endif %} {% if question.metadata.started %}

{{ _('This started when...') }}

{{ question.metadata.started }}

{% endif %} {% if question.metadata.troubleshooting %}

{{ _('More Information') }}

{{ question.metadata.troubleshooting|trim|collapse_linebreaks|nl2br }}

{% endif %} {% if question.metadata.plugins %}

{{ _('Installed Plug-ins') }}

{{ question.metadata.plugins|wiki_to_html }}
{% endif %} {% if question.metadata.useragent %}

{{ _('User Agent') }}

{{ question.metadata.useragent }}

{% endif %}
{% set tags = question.tags.all() %} {% if tags or can_tag %}

{{ _('Tags') }}

{% if can_tag %}
{{ csrf() }} {% endif %}
    {% for tag in tags %}
  • {# -#} {{ tag }} {%- if can_tag -%} {%- endif -%}
  • {% endfor %}
{% if can_tag %}
{% endif %} {% if can_tag %} {% if tag_adding_error %}

{{ tag_adding_error }}

{% endif %}
{{ csrf() }}
{% endif %}
{% endif %} {% if user.is_authenticated() and user != question.creator and not question.is_locked %}
{% include 'questions/includes/flag_form.html' %}
{% endif %} {% if related %}

{{ _('Related Questions') }}

{% endif %}
{% if answers.object_list %}

{% if question.num_answers > 0 %} {# L10n: {n} is the number of replies. #} {{ ngettext('1 reply', '{n} replies', question.num_answers)|f(n=question.num_answers) }} {% else %} {{ _('No replies') }} {% endif %}

{% if not question.is_locked %} {{ _('Post a Reply') }} {% endif %}
    {% for answer in answers.object_list %}
  1. {% include "questions/includes/answer.html" %}
  2. {% endfor %}
{{ answers|paginator }}
{% endif %}

{{ _('Post a Reply') }}

{% if question.is_locked %}

{{ _('This question is locked.') }}

{% elif user.is_authenticated() %}
{{ csrf() }} {{ errorlist(form) }}
{{ content_editor(form.content) }}
{# for the speech bubble arrow #}
{{ attachments_form('questions.Question', question.pk, images, settings, user) }}
{% else %}

{{ _('You must log in to your account to reply to posts.')|fe(url=url('users.login')) }}

{{ _("Don't have an account? You can create a free account now.")|fe(url=url('users.register')) }}

{% endif %}
{% if answer_preview %}

{{ _('Reply Preview') }}

  1. {% set answer = answer_preview %} {% include "questions/includes/answer.html" %}
{% endif %}
{% endblock %} {% block side %} {% endblock %}