a73x

src/server/http/templates/issues.html

Ref:   Size: 1.7 KiB   History

{% extends "repo_base.html" %}

{% block title %}Issues — {{ repo_name }} — {{ site_title }}{% endblock %}

{% block content %}
<h2>Issues</h2>
<p class="filter-bar">
  Showing:
  <a href="/{{ repo_name }}/issues?filter=open"{% if filter == "open" %} class="active"{% endif %}>open</a>
  <a href="/{{ repo_name }}/issues?filter=closed"{% if filter == "closed" %} class="active"{% endif %}>closed</a>
  <a href="/{{ repo_name }}/issues?filter=all"{% if filter == "all" %} class="active"{% endif %}>all</a>
</p>
{% if issues.is_empty() %}
{# See the matching comment in patches.html, and issue c43c459d. #}
{% if total == 0 %}
<p style="color: #666;">No issues yet.</p>
{% else %}
<p style="color: #666;">No {{ filter }} issues. ({{ total }} total —
  <a href="/{{ repo_name }}/issues?filter=all">show all</a>)</p>
{% endif %}
{% else %}
<div class="table-scroll">
<table>
  <thead>
    <tr>
      <th>ID</th>
      <th>Status</th>
      <th>Title</th>
      <th>Author</th>
      <th>Claimed by</th>
      <th>Labels</th>
      <th>Updated</th>
    </tr>
  </thead>
  <tbody>
    {% for i in issues %}
    <tr>
      <td class="mono"><a href="/{{ repo_name }}/issues/{{ i.id }}">{{ i.short_id }}</a></td>
      <td><span class="status-{{ i.status }}">{{ i.status }}</span></td>
      <td><a href="/{{ repo_name }}/issues/{{ i.id }}">{{ i.title }}</a></td>
      <td style="color: #666;">{{ i.author }}</td>
      <td style="color: #666;">{{ i.claimed_by }}</td>
      <td style="color: #666;">{{ i.labels }}</td>
      <td class="mono timestamp" style="color: #666;" title="{{ i.updated.full }}">{{ i.updated.short }}</td>
    </tr>
    {% endfor %}
  </tbody>
</table>
</div>
{% endif %}
{% endblock %}