{% extends 'repository/repo_layout.html' %} {% block title %}Issue #{{ issue.id }} - {{ repo_owner }}/{{ repo_name }}{% endblock %} {% block repo_content %}
#{{ issue.id }}

{{ issue.title }}

{% if issue.status == 'open' %} Open {% else %} Closed {% endif %}
{% if session.get('user_id') and (session.get('user_id') == issue.created_by or repo.owner_id == session.get('user_id')) %} {% endif %}
{{ issue.author_name }} commented {{ issue.created_at | timesince }}
{% for comment in comments %}
{{ comment.author_name }} commented {{ comment.created_at | timesince }}
{% endfor %}
{% if session.get('user_id') %}
{% if issue.status == 'open' %} {% else %} {% endif %}
{% else %}

You must be logged in to comment.

Log in
{% endif %}
Assignees {% if g.user and repo.can_write %} {% set assigned_to_me = assignees | selectattr('username', 'equalto', g.user.username) | list | length > 0 %} {% if assigned_to_me %} {% else %} {% endif %} {% endif %}
{% if assignees %}
{% for assignee in assignees %} {{ assignee.username }} {% endfor %}
{% else %}
No one assigned
{% endif %}
{% set can_manage_labels = (g.user and (repo.can_write or issue.created_by == g.user.id)) %} Labels {% if can_manage_labels %} {% endif %} {% if can_manage_labels %} {% endif %}
{% if labels %}
{% for label in labels %} {{ label.name }} {% if can_manage_labels %} {% endif %} {% endfor %}
{% else %}
None yet
{% endif %}
Participants
{% for participant in participants %}
{{ participant.username }}
{{ participant.username }}
{% endfor %}

{{ "You're receiving notifications from this thread." if is_subscribed else "You're not receiving notifications from this thread." }}

{% endblock %} {% block scripts %} {% endblock %}