Menu
AkurAI-Build
publicLatest change 20dad6d02033d14ae8d348daf8be44524b5a8ecd - Add secure collaboration and Build operations by Ólafur Búi Ólafsson
{% extends "layouts/base.html" %}
{% block title %}Issues — {{ repository.name }}{% endblock %}
{% block page %}repository-issues{% endblock %}
{% block body %}
<main class="ab-public">
{% include "partials/public-header.html" %}
<section class="ab-community" aria-labelledby="issues-title">
<p class="ab-kicker"><a href="/repos/{{ repository.name }}">{{ repository.name }}</a> / Community</p>
<div class="ab-section-heading">
<div>
<h1 id="issues-title">Issues</h1>
<p>Discuss bugs, ideas, and improvements with the people building {{ repository.name }}.</p>
</div>
<nav aria-label="Issue state"><a href="/repos/{{ repository.name }}/issues?state=open">Open</a><span aria-hidden="true"> · </span><a href="/repos/{{ repository.name }}/issues?state=closed">Closed</a></nav>
</div>
{% if can_write %}
<details class="ab-panel"{% if not issues %} open{% endif %}>
<summary>Open a new issue</summary>
<form method="post" action="/repos/{{ repository.name }}/issues" class="ab-form">
<label for="issue-title">Title</label>
<input id="issue-title" name="title" maxlength="256" required autocomplete="off">
<label for="issue-body">Describe the issue</label>
<textarea id="issue-body" name="body" maxlength="65536" rows="7" aria-describedby="issue-body-help"></textarea>
<p id="issue-body-help" class="ab-muted">Markdown is supported. Links and formatting are sanitized before display.</p>
<button class="ab-button ab-button-primary" type="submit">Open issue</button>
</form>
</details>
{% else %}
<p class="ab-muted"><a href="/auth/login?return_to=/repos/{{ repository.name }}/issues">Sign in</a> to open an issue or join the discussion.</p>
{% endif %}
{% if issues %}
<ol class="ab-repo-list" aria-label="{{ state }} issues">
{% for issue in issues %}
<li>
<div>
<a href="/repos/{{ repository.name }}/issues/{{ issue.number }}"><strong>#{{ issue.number }} {{ issue.title }}</strong></a>
<p>{{ issue.state|capitalize }} · opened by {{ issue.author_display }} · {{ issue.created_at }}</p>
</div>
{% if issue.state == "closed" %}<span class="ab-badge">Closed</span>{% else %}<span class="ab-badge">Open</span>{% endif %}
</li>
{% endfor %}
</ol>
{% else %}
<div class="ab-empty"><h2>No {{ state }} issues</h2><p>{% if state == "open" %}There are no open conversations yet.{% else %}No issues have been closed yet.{% endif %}</p></div>
{% endif %}
{% if has_previous or has_next %}
<nav class="ab-actions" aria-label="Issue pages">
{% if has_previous %}<a class="ab-button" href="/repos/{{ repository.name }}/issues?state={{ state }}&offset={{ offset - limit }}">Previous</a>{% endif %}
<span class="ab-muted">Showing {{ offset + 1 }}–{{ page_end }} of {{ total }}</span>
{% if has_next %}<a class="ab-button" href="/repos/{{ repository.name }}/issues?state={{ state }}&offset={{ offset + limit }}">Next</a>{% endif %}
</nav>
{% endif %}
</section>
{% include "partials/public-footer.html" %}
</main>
{% endblock %}