{% extends "two_column_body.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 forestyle %} {% 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 %} {% if settings.ENABLE_SHARING_TWITTER %}{{ macros.share(site = 'twitter', icon = True) }}{% endif %} {% if settings.ENABLE_SHARING_FACEBOOK %}{{ macros.share(site = 'facebook', icon = True) }}{% endif %} {% if settings.ENABLE_SHARING_LINKEDIN %}{{ macros.share(site = 'linkedin', icon = True) }}{% endif %} {% if settings.ENABLE_SHARING_GOOGLE %}{% 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() }} {% if question.deleted %}{% trans %}undelete{% endtrans %}{% else %}{% trans %}delete{% endtrans %}{% endif %} {% 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, show_post = show_post, show_comment = show_comment, comment_order_number = comment_order_number, 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 %}

{% trans %}oldest answers{% endtrans %} {% trans %}newest answers{% endtrans %} {% trans %}popular 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 %} {% if settings.ALLOW_SWAPPING_QUESTION_WITH_ANSWER and request.user.is_authenticated() and request.user.is_administrator_or_moderator() %}{{ pipe() }} {% trans %}swap with question{% endtrans %} {% 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, show_post = show_post, show_comment = show_comment, comment_order_number = comment_order_number, user = request.user, max_comments = settings.MAX_COMMENTS_TO_SHOW ) }}
{% endfor %} {{ macros.paginator(paginator_context) }} {% else %} {% set question_url=settings.APP_URL+question.get_absolute_url()|iriencode %}

{% trans %}Know someone who can answer? Share a link to this question via{% endtrans %} {% if settings.ENABLE_SHARING_TWITTER %}{{ macros.share(site = 'twitter', site_label = 'Twitter') }},{% endif %} {% if settings.ENABLE_SHARING_FACEBOOK %}{{ macros.share(site = 'facebook', site_label = 'Facebook') }},{% endif %} {% if settings.ENABLE_SHARING_LINKEDIN %}{{ macros.share(site = 'linkedin', site_label = 'LinkedIn') }},{% endif %} {%- if settings.ENABLE_SHARING_TWITTER or settings.ENABLE_SHARING_FACEBOOK or settings.ENABLE_SHARING_LINKEDIN -%} {% trans %} or{% endtrans %} {% endif %} {% trans %}email{% endtrans %}.

{% endif %}
{% csrf_token %} {% 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 request.user.is_anonymous() and settings.ALLOW_POSTING_BEFORE_LOGGING_IN == False %} {% if not question.closed %} {% trans %}Login/Signup to Answer{% endtrans %} {% endif %} {% else %} {% 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 request.user.is_anonymous() %}
{% 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) }} {% if settings.WIKI_ON %} {{ macros.checkbox_in_div(answer.wiki) }} {% endif %} {% endif %} {% endif %}
{% endblock %} {% block sidebar %} {{ settings.SIDEBAR_QUESTION_HEADER }} {% cache 0 "questions_tags" questions_tags question.id language_code %} {% if settings.SIDEBAR_QUESTION_SHOW_TAGS %}

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

{% endif %} {% if settings.SIDEBAR_QUESTION_SHOW_META %}

{% 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}}

{% endif %} {% endcache %} {% if similar_questions.data and settings.SIDEBAR_QUESTION_SHOW_RELATED %} {% cache 1800 "related_questions" related_questions question.id language_code %}

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

{% endcache %} {% endif %} {{ settings.SIDEBAR_QUESTION_FOOTER }} {% endblock %} {% block endjs %} {% if not question.closed %} {% endif %} {% if settings.ENABLE_SHARING_GOOGLE %}{% endif %} {% include "blocks/editor_data.html" %} {% endblock %}