{% extends 'layout/page.html' %} {% block head_title %} {% if context.id %} Issue {{ context.id }}: {{ context.title.plain()|u }} - {{ config.TRACKER_NAME }} {% else %} New Issue - {{ config.TRACKER_NAME }} {% endif %} {% endblock %} {% block page_header %} {% if not (context.id or context.is_edit_ok()) %} New Issue {% elif not context.id and context.is_edit_ok() %} New Issue Editing {% else %} Issue {{ context.id }} {% endif %} {% endblock %} {% block extracss %} {% if context.is_edit_ok() %} {% endif %} {% endblock %} {% block extrajs %} {% if context.is_edit_ok() %} {% endif %} {% endblock %} {% block content %} {% include 'layout/permission.html' %} {% if context.is_view_ok() %} {% if context.is_edit_ok() %} {% include 'issue.item.edit.html' %} {% else %} {% include 'issue.item.readonly.html' %} {% endif %} {% endif %} {% if context.id %}

Created on {{ context.creation.plain()|u }} by {{ context.creator.plain()|u }}, last changed {{ context.activity.reldate()|u }} by {{ context.actor.plain()|u }}.

{% endif %} {% if context.files %} {% include 'file.index.html' %} {% endif %} {% if context.messages %}

Messages

{% for msg in context.messages.reverse() %}
msg{{msg.id}} (view)
Author: {{ msg.author.plain()|u }}
Date: {{ msg.date.plain()|u }}
{% if context.is_edit_ok() %}
{% endif %}
{% if msg.type == 'text/markdown' %}
{{ msg.content.markdown()|u|safe }}
{% elif msg.type == 'text/x-rst' %}
{{ msg.content.rst()|u|safe }}
{% else %}
{{ msg.content.hyperlinked()|u|safe }}
{% endif %}
{% endfor %} {% endif %}
{{ context.history()|u|safe }} {% endblock %}