{% extends "layout/basic.html" %} {% import "components/user.html" as user with context %} {% import "components/form.html" as form with context %} {% block content %}

#{{ qdoc._id }}- {{ qdoc.title }}

{{ _('Question Content') }}

{{ qdoc.content|markdown|safe }}
{% for qpdoc in qpdocs %} {% if qpdoc.isSystem %}
{{ user.render_inline(udict[qpdoc.operator]) }} {% if qpdoc.operation == 'assigned' %} {% if qpdoc.target == qpdoc.operator %} {{ _('self-assigned this question') }} {% else %} {{ _('assigned this question to') }} {{ user.render_inline(udict[qpdoc.target]) }} {% endif %} {% elif qpdoc.operation == 'status_changed' %} {% set statusMap = { '1': _("Open"), '2': _("Processing"), '3': _("Waiting for User"), '4': _("Suspended"), '5': _("Resolved"), '6': _("Closed") } %} {{ _('changed question status to') }} {{ statusMap[qpdoc.data.to] }} {% elif qpdoc.operation == 'title_changed' %} {{ _('changed question title from') }} {{ qpdoc.data.from }} {{ _('changed question title to') }} {{ qpdoc.data.to }} {% elif qpdoc.operation == 'question_changed' %} {{ _('changed question') }} {% elif qpdoc.operation == 'question_reopened' %} {{ _('reopened question') }} {% elif qpdoc.operation == 'question_closed' %} {{ _('closed question') }} {% endif %} {{ datetimeSpan(qpdoc['_id'])|safe }}
{% else %}
{{ user.render_inline(udict[qpdoc.owner]) }} {{ _('Replied at') }} {{ datetimeSpan(qpdoc['_id'])|safe }}
{% if handler.user.hasPriv(PRIV.PRIV_EDIT_SYSTEM)%}
{% endif %}
{{ qpdoc.content|markdown|safe }}
{% endif %} {% endfor %}

{{ _('Reply') }}

{{ form.form_textarea({ columns:12, name:'content', markdown:true, extra_style:'height: 200px', placeholder:_('Leave a comment') }) }}

{{ _('Question Info') }}

{{ _('Question Action') }}

{% endblock %}