{% extends "base.html" %} {% import "macros.html" as macros %} {% block title %}{% spaceless %}{{ question.get_question_title() }}{% endspaceless %}{% endblock %} {% block meta_description %} {% endblock %} {% block keywords %}{{question.tagname_meta_generator()}}{% endblock %} {% block forejs %} {% endblock %} {% block content %}
{{ question.get_question_title() }}
{% if question_vote %} {% trans %}i like this post (click again to cancel){% endtrans %}
{{ question.score }}
{% trans %}i dont like this post (click again to cancel){% endtrans %} {% else %} {% trans %}i like this post (click again to cancel){% endtrans %}
{{ question.score }}
{% trans %}i dont like this post (click again to cancel){% endtrans %} {% endif %} {% if favorited %} {% trans %}mark this question as favorite (click again to cancel){% endtrans %}
{{ question.favourite_count }}
{% else %} {% trans %}remove favorite mark from this question (click again to restore mark){% endtrans %}
{% if question.favourite_count != 0 %}{{ question.favourite_count }}{% endif %}
{% endif %}
{{question.html}}
{% set pipe=joiner('|') %} {% if request.user|can_edit_post(question) %}{{ pipe() }} {% trans %}edit{% endtrans %} {% endif %} {% if request.user|can_retag_question(question) %}{{ pipe() }} {% trans %}retag{% endtrans %} {% endif %} {% if question.closed %} {% if request.user|can_reopen_question(question) %}{{ pipe() }} {% trans %}reopen{% endtrans %} {% endif %} {% else %} {% if request.user|can_close_question(question) %}{{ pipe() }} {% trans %}close{% endtrans %} {% endif %} {% endif %} {% if request.user|can_flag_offensive(question) %}{{ pipe() }} {% trans %}flag offensive{% endtrans %} {% if request.user|can_see_offensive_flags(question) %} {% if question.offensive_flag_count > 0 %}({{ question.offensive_flag_count }}){% endif %} {% endif %} {% endif %} {% if request.user|can_delete_post(question) %}{{ pipe() }} {% trans %}delete{% endtrans %} {% endif %}
{{ macros.post_contributor_info( question, "original_author", question.wiki, settings.MIN_REP_TO_EDIT_WIKI ) }} {{ macros.post_contributor_info( question, "last_updater", question.wiki, settings.MIN_REP_TO_EDIT_WIKI, ) }}
{{ macros.post_comments_widget( post = question, user = request.user, max_comments = settings.MAX_COMMENTS_TO_SHOW ) }}
{% if question.closed %}

{% trans close_reason=question.get_close_reason_display() %}The question has been closed for the following reason "{{ close_reason }}" by{% endtrans %} {{ question.closed_by.username }} {% trans closed_at=question.closed_at %}close date {{closed_at}}{% endtrans %}

{% endif %} {% if answers %}
{% trans counter=answers|length %} {{counter}} Answer: {% pluralize %} {{counter}} Answers: {% endtrans %}
{{ macros.paginator(paginator_context) }} {% for answer in answers %}
{% trans %}i like this answer (click again to cancel){% endtrans %}
{{ answer.score }}
{% trans %}i dont like this answer (click again to cancel){% endtrans %} {% if request.user == question.author %} {% trans %}mark this answer as favorite (click again to undo){% endtrans %} {% else %} {% if answer.accepted %} {% trans question_author=question.author.username %}{{question_author}} has selected this answer as correct{% endtrans %}
{{ answer.html }}
{% set pipe=joiner('|') %} {{ pipe() }} {% trans %}permanent link{% endtrans %} {% if request.user|can_edit_post(answer) %}{{ pipe() }} {% trans %}edit{% endtrans %} {% endif %} {% if request.user|can_flag_offensive(answer) %}{{ pipe() }} {% trans %}flag offensive{% endtrans %} {% if request.user|can_see_offensive_flags(answer) %} {% if answer.offensive_flag_count > 0 %}({{ answer.offensive_flag_count }}){% endif %} {% endif %} {% endif %} {% if request.user|can_delete_post(answer) %}{{ pipe() }} {% spaceless %} {% if answer.deleted %}{% trans %}undelete{% endtrans %}{% else %}{% trans %}delete{% endtrans %}{% endif %} {% endspaceless %} {% endif %}
{{ macros.post_contributor_info( answer, "original_author", answer.wiki, settings.MIN_REP_TO_EDIT_WIKI ) }} {{ macros.post_contributor_info( answer, "last_updater", answer.wiki, settings.MIN_REP_TO_EDIT_WIKI ) }}
{{ macros.post_comments_widget( post = answer, user = request.user, max_comments = settings.MAX_COMMENTS_TO_SHOW ) }}
{% endfor %}
{{ macros.paginator(paginator_context) }}
{% endif %}
{% if request.user.is_authenticated() %}

{{ answer.email_notify }} {% trans profile_url=request.user.get_profile_url() %}You can always adjust frequency of email updates from your {{profile_url}}{% endtrans %}

{% else %}

{% endif %}
{% if not question.closed %}
{% spaceless %}
{% if answers %} {% trans %}Your answer{% endtrans %} {% else %} {% trans %}Be the first one to answer this question!{% endtrans %} {% endif %}
{% endspaceless %}
{% if not request.user.is_authenticated() %}
{% trans %}you can answer anonymously and then login{% endtrans %}
{% else %}

{% if request.user==question.author %} {% trans %}answer your own question only to give an answer{% endtrans %} {% else %} {% trans %}please only give an answer, no discussions{% endtrans %} {% endif %}

{% endif %} {{macros.edit_post(answer, settings.WIKI_ON)}} {% endif %}
{% endblock %} {% block sidebar %} {% cache 600 "questions_tags" questions_tags question.id language_code %}

{% trans %}Question tags{% endtrans %}:

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

{% trans %}question asked{% endtrans %}: {{question.added_at|diff_date}}

{% trans %}question was seen{% endtrans %}: {{ question.view_count|intcomma }} {% trans %}times{% endtrans %}

{% trans %}last updated{% endtrans %}: {{question.last_activity_at|diff_date}}

{% endcache %} {% if similar_questions.data %} {% cache 1800 "related_questions" related_questions question.id language_code %}

{% trans %}Related questions{% endtrans %}

{% endcache %} {% endif %} {% endblock %} {% block endjs %} {% if not question.closed %} {% endif %} {% include "editor_data.html" %} {% endblock %}