Login
4 branches 0 tags
Ben (Desktop/Arch) CI fix 3a636b6 18 days ago 223 Commits
rubhub / templates / project / ci / view.html
<html>
  <head>
    <title>{{ owner.name }}/{{ project.name }} - CI Job</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> /
            {{ job.workflow_name }}
          </h1>
        </div>

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

        <div class="card">
          <div class="ci-job-header">
            <h2>{{ job.workflow_name }}</h2>
            <span class="issue-status status-{{ job.status.as_str() }}">{{ job.status.as_str() }}</span>
          </div>

          <dl class="ci-details">
            <dt>Branch</dt>
            <dd>{{ job.branch }}</dd>
            <dt>Commit</dt>
            <dd><code>{{ job.commit_hash }}</code></dd>
            <dt>Created</dt>
            <dd>{{ job.relative_time() }}</dd>
            {% if let Some(exit_code) = job.exit_code %}
            <dt>Exit Code</dt>
            <dd>{{ exit_code }}</dd>
            {% endif %}
          </dl>

          <h3>Output</h3>
          <pre class="ci-log">{{ log_content }}</pre>

          <p class="ci-log-link">
            <a href="{{ job.uri() }}/log" target="_blank">View raw log</a>
          </p>
        </div>
      </section>
    </main>
  </body>

</html>