Login
4 branches 0 tags
Ben (Desktop/Arch) CI 63f0089 17 days ago 229 Commits
rubhub / templates / project / ci / list.html
<html>
  <head>
    <title>{{ owner.name }}/{{ project.name }} - CI</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="/~{{ owner.slug }}/{{ project.slug }}/ci">CI</a>
          </h1>
        </div>

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

        <div class="card">
          <div class="issues-header">
            <h2>CI Jobs</h2>
          </div>

          {% if jobs.is_empty() %}
          <p class="empty-state">No CI jobs yet. Add a workflow file to <code>.rubhub/workflows/</code> to get started.</p>
          {% else %}
          <div class="issues-list">
            {% for job in jobs %}
            <div class="issue-item issue-{{ job.status.as_str() }}">
              <div class="issue-start">
                <a href="{{ job.uri() }}" class="issue-title">{{ job.workflow_name }}</a>
                <span class="issue-meta">
                  <code>{{ job.short_hash() }}</code> on <strong>{{ job.branch }}</strong> {{ job.relative_time() }}
                </span>
              </div>
              <a href="{{ job.uri() }}" class="issue-status status-{{ job.status.as_str() }}">{{ job.status.as_str() }}</a>
            </div>
            {% endfor %}
          </div>
          {% endif %}
        </div>
      </section>
    </main>
  </body>

</html>