Menu
AkurAI-Build
publicLatest change 20dad6d02033d14ae8d348daf8be44524b5a8ecd - Add secure collaboration and Build operations by Ólafur Búi Ólafsson
{% extends "layouts/base.html" %}
{% block title %}#{{ issue.number }} {{ issue.title }} — {{ repository.name }}{% endblock %}
{% block page %}repository-issue{% endblock %}
{% block body %}
<main class="ab-public">
{% include "partials/public-header.html" %}
<section class="ab-community" aria-labelledby="issue-title">
<p class="ab-kicker"><a href="/repos/{{ repository.name }}">{{ repository.name }}</a> / <a href="/repos/{{ repository.name }}/issues">Issues</a> / #{{ issue.number }}</p>
<header class="ab-section-heading">
<div><h1 id="issue-title">{{ issue.title }}</h1><p>#{{ issue.number }} · {{ issue.state|capitalize }} · opened by {{ issue.author_display }} on {{ issue.created_at }}</p></div>
{% if can_edit %}
<form method="post" action="/repos/{{ repository.name }}/issues/{{ issue.number }}">
{% if issue.state == "open" %}<input type="hidden" name="state" value="closed"><button class="ab-button" type="submit">Close issue</button>{% else %}<input type="hidden" name="state" value="open"><button class="ab-button" type="submit">Reopen issue</button>{% endif %}
</form>
{% endif %}
</header>
<article class="ab-panel" aria-labelledby="issue-description"><h2 id="issue-description" class="pt-sr-only">Issue description</h2><div class="ab-markdown">{{ issue.body_html|safe }}</div></article>
<section aria-labelledby="comments-title">
<h2 id="comments-title">Discussion{% if comments %} ({{ comments|length }}){% endif %}</h2>
{% if comments %}
<ol class="ab-repo-list" aria-label="Issue comments">
{% for comment in comments %}<li><article><header><strong>{{ comment.author_display }}</strong><span class="ab-muted"> · {{ comment.created_at }}</span></header><div class="ab-markdown">{{ comment.body_html|safe }}</div></article></li>{% endfor %}
</ol>
{% else %}<p class="ab-empty">No comments yet. Start the discussion.</p>{% endif %}
</section>
{% if can_comment %}
<form method="post" action="/repos/{{ repository.name }}/issues/{{ issue.number }}/comments" class="ab-form ab-panel">
<h2>Join the discussion</h2>
<label for="comment-body">Comment</label>
<textarea id="comment-body" name="body" maxlength="65536" rows="6" required aria-describedby="comment-help"></textarea>
<p id="comment-help" class="ab-muted">Markdown is supported. Unsafe HTML and links are removed.</p>
<button class="ab-button ab-button-primary" type="submit">Comment</button>
</form>
{% else %}<p class="ab-muted"><a href="/auth/login?return_to=/repos/{{ repository.name }}/issues/{{ issue.number }}">Sign in</a> to join the discussion.</p>{% endif %}
</section>
{% include "partials/public-footer.html" %}
</main>
{% endblock %}