{% extends g.theme.master %} {% from 'allura:templates/jinja_master/lib.html' import abbr_date with context %} {% do g.register_forge_css('css/forge/hilite.css') %} {% do g.register_app_css('css/tracker.css') %} {% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}} / #{{ticket.ticket_num}} {{ticket.summary}}{% endblock %} {% block head %} {% endblock %} {% block header %}#{{ticket.ticket_num}} {{ticket.summary}}{% endblock %} {% block actions %} {% if c.user and c.user != c.user.anonymous() %} {{c.subscribe_form.display(value=subscribed, tool_subscribed=tool_subscribed, action='subscribe', style='icon')}} {% endif %} {% if h.has_access(ticket, 'update') %} Edit {% endif %} {% endblock %} {% block edit_box %}
{% if '_milestone' in ticket.custom_fields %}
{% if ticket.custom_fields['_milestone'] %} {{ticket.custom_fields['_milestone']}} {% else %} None {% endif %}
{% endif %}
{{ticket.status}}
{% if ticket.assigned_to_id %} {{ticket.assigned_to_name()}} {% else %} {{ticket.assigned_to_name()}} {% endif %}
{% for label in ticket.labels %} {{label}} ({{ticket.artifacts_labeled_with(label, ticket.app_config).count()}}) {% else %} None {% endfor %}
{% set min_c_fields = '_milestone' in ticket.custom_fields and 1 or 0 %} {% if globals.custom_fields and globals.custom_fields.__len__() > min_c_fields %} {% set cf_count=0 %} {% for field in globals.custom_fields or [] %} {% if field.name != '_milestone' %} {% if cf_count%4 == 0 and cf_count != 0 %}
{% endif %}
{% if field.type == 'user' %} {% set user = ticket.get_custom_user(field.name) %} {% if user %} {{user.get_pref('display_name')}} {% else %} nobody {% endif %} {% else %} {{ticket.custom_fields[field.name]}} {% endif %}
{% set cf_count=cf_count+1 %} {% endif %} {% endfor %} {% endif %}
{{abbr_date(ticket.mod_date)}}
{{abbr_date(ticket.created_date)}}
{{'Yes' if ticket.private else 'No'}}
{% endblock %} {% block content %}
{{g.markdown.convert(ticket.description)|safe}} {% if ticket.attachments %} {{ticket.attachments.__len__()}} Attachments
{% for att in ticket.attachments %}
{% if att.is_image() and not att.is_embedded() %} {% else %} {{att.filename.split('.')[-1] or 'file'}} {% endif %} {{att.filename}}
{% endfor %}
{% endif %}
{% endblock %} {% block after_content %} {{lib.related_artifacts(ticket)}}

Discussion

{% set thread=ticket.discussion_thread %} {{c.thread.display(value=thread,new_post_text="New Comment",page=page,limit=limit,count=count)}}
{% endblock %} {% block extra_js %} {% if h.has_access(ticket, 'update')() %} {% endif %} {% endblock %} {% block extra_css %} {% endblock %}