Login
4 branches 0 tags
Ben (Desktop/Arch) CI ed432d4 18 days ago 222 Commits
rubhub / templates / project / talk / list.html
<html>
  <head>
    <title>{{ owner.name }}/{{ project.name }} - Issues</title>
  </head>

  <body>
    {% include "partials/sidebar.html" %}
    <main>
      <section>
        <div class="page-header">
          <h1 class="project-header">
            <a href="{{ owner.uri() }}">{{ owner.name }}</a> /
            <a href="{{ project.uri() }}">{{ project.name }}</a> /
            <a href="{{ project.uri_talk() }}">Talk</a>
          </h1>
        </div>

        {% include "partials/project_tabs.html" %}

        <div class="card">
          <div class="issues-header">
            <div class="issue-filters">
              <a href="{{ project.uri_talk() }}" class="btn btn-filter issue-open{% if current_status == "open" %} active{% endif %}"><span class="icon i-diamond"></span><span class="filter-label">Open</span> {{ count_open }}</a>
              <a href="{{ project.uri_talk() }}?status=completed" class="btn btn-filter issue-completed{% if current_status == "completed" %} active{% endif %}"><span class="icon i-check"></span><span class="filter-label">Completed</span> {{ count_completed }}</a>
              <a href="{{ project.uri_talk() }}?status=cancelled" class="btn btn-filter issue-cancelled{% if current_status == "cancelled" %} active{% endif %}"><span class="icon i-x"></span><span class="filter-label">Closed</span> {{ count_cancelled }}</a>
            </div>
            {% if logged_in_user.is_some() %}
            <a href="/~{{ owner.slug }}/{{ project.slug }}/talk/new" class="btn">
              <span class="icon i-plus"></span> New Issue
            </a>
            {% endif %}
          </div>

          {% if issues.is_empty() %}
          <p class="empty-state">No issues yet.</p>
          {% else %}
          <div class="issues-list">
            {% for issue in issues %}
            <div class="issue-item issue-{{ issue.status.as_str() }}">
              <div class="issue-start">
                <a href="{{ issue.uri(&owner.slug, &project.slug) }}" class="issue-title">{{ issue.title }}</a>
                <span class="issue-meta">
                  opened by <a href="/~{{ issue.author }}" class="issue-author">{{ issue.author_name }}</a> {{ issue.relative_time() }}
                </span>
              </div>
              {% if issue.comment_count > 0 %}
              <a href="{{ issue.uri(&owner.slug, &project.slug) }}" class="issue-comment-count"><span class="icon i-message-square"></span> {{ issue.comment_count }}</a>
              {% endif %}
              <a href="{{ issue.uri(&owner.slug, &project.slug) }}" class="issue-status status-{{ issue.status.as_str() }}">{{ issue.status.as_str() }}</a>
            </div>
            {% endfor %}
          </div>
          {% endif %}
        </div>
      </section>
    </main>
  </body>

</html>