{% extends "repo_master.html" %} {% from "_formhelper.html" import render_bootstrap_field, show_comment, show_initial_comment, show_attachments %} {% block title %}Issue #{{ issueid }}: {{issue.title | noJS(ignore="img") | safe }} - {{ repo.name }}{% endblock %} {% set tag = "home"%} {% block header %} {% endblock %} {% block repo %}

{% if g.authenticated and (g.repo_user or open_access or g.fas_user.username == issue.user.user) %} {% endif %}
{% if issue.private %} {% endif %} {% if issue.status == 'Open' %} #{{issue.id}} {% elif issue.status == 'Closed' %} #{{issue.id}} {% endif %} {{ issue.title | noJS(ignore="img") | safe}} {% if g.repo_committer or ( g.fas_user and g.fas_user.username == issue.user.username) %} {% endif %}
{% if issue.status == 'Open' %} Opened {{ issue.date_created |humanize }} by {{ issue.user.user }}. Modified {{ issue.last_updated |humanize }} {% elif issue.status == 'Closed' %} {% if issue.close_status %} Closed: {{issue.close_status}} {% else %} Closed {% endif %} {{ issue.closed_at |humanize }} {% if issue.closed_by %} by {{ issue.closed_by.user }}. {% endif %} Opened {{ issue.date_created |humanize }} by {{ issue.user.user }}. {% endif %}

{{ form.csrf_token }}
{{ show_initial_comment(issue, username, repo,issueid, form) }}
{% if issue.comments %} {% for comment in issue.comments %} {% if comment.notification %}
{{ comment.user.default_email | avatar(16) | safe }}
{{ comment.comment | markdown | noJS | safe }}
{{ comment.date_created | humanize }}
{% else %} {{ show_comment(comment, comment.id, repo, username, issueid, form) }} {% endif %} {% endfor %} {% endif %}
{% if g.authenticated and form and not repo.settings.get('issue_tracker_read_only', False) %}
Add new comment
{% if repo.quick_replies %} {% include "quick_reply.html" %} {% endif %}
{% elif g.authenticated and form and repo.settings.get('issue_tracker_read_only', False) %}

This issue tracker is read-only.

{% else %}

Login to comment on this ticket.

{% endif %}
Metadata
{% if g.authenticated and (g.repo_user or g.fas_user.username == issue.user.user or open_access) and not repo.settings.get('issue_tracker_read_only', False) %}
{% endif %}
{% if g.authenticated and (g.repo_user or g.fas_user.username == issue.user.user) %} {% endif%} {% if g.authenticated and (g.repo_user or open_access) %} {% endif%} {% if g.authenticated and (g.repo_user or open_access) %} {% endif%} {%macro blocks_item(ticket, itemtype="block") %} {% if ticket.status|lower == 'open' %} {% set status_color = "success" %} {% elif ticket.status|lower == 'merged' %} {% set status_color = "info" %} {% else %} {% set status_color = "danger" %} {% endif %}
#{{ticket.id}}
{% endmacro %} {% if g.authenticated and (g.repo_user or open_access) %} {% endif%} {% if g.authenticated and (g.repo_user or open_access) %} {% endif%} {% if repo.priorities %} {% if g.authenticated and (g.repo_user or open_access) %} {{ render_bootstrap_field(form.priority, formclass="issue-metadata-form hidden") }} {% endif%} {% endif %} {% if repo.milestones %} {% if g.authenticated and (g.repo_user or open_access) %} {{ render_bootstrap_field(form.milestone, formclass="issue-metadata-form hidden") }} {% endif%} {% endif %} {% if g.authenticated and (g.repo_user or open_access) %} {{ render_bootstrap_field(form.private, formclass="issue-metadata-form hidden") }} {% endif%} {% if repo.issue_keys %} {% for field in repo.issue_keys %} {% if g.authenticated and (g.repo_user or open_access) %} {% endif %} {% endfor %} {% endif %}
{% if attachments %}
Attachments {{attachments|count}}
{##}
{{ show_attachments(attachments) }}
{% endif %} {% if g.authenticated %}
Subscribers {{subscribers|count}}
{% if subscribers %}
{% for subscriber in subscribers %} {{ subscriber |avatar(size=30, css_class="pb-1") | safe }} {% endfor %}
{% else %}
No Subscribers
{% endif %}
{% endif %} {% if issue.related_prs %}
Related Pull Requests
    {% for pr in issue.related_prs %}
  • #{{pr.id}} {{ pr.status if pr.status != 'Open' else 'Last updated' }} {{ pr.last_updated | humanize }}
  • {% endfor %}
{% endif %}
{% endblock %} {% block jscripts %} {{ super() }} {% if config['EVENTSOURCE_SOURCE'] and not issue.private %} {% endif %} {% if repo.quick_replies %} {% endif %} {% endblock %}