~sircmpwn/builds.sr.ht

builds.sr.ht/buildsrht/templates/jobs.html -rw-r--r-- 2.7 KiB
378a024eDrew DeVault debian/*: add curl a day ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{% extends "layout.html" %}

{% block head %}
{% if rss_feed %}
<link rel="alternate" title="{{ rss_feed['title'] }}" type="application/rss+xml" href="{{ rss_feed['url'] }}">
{% endif %}
{% endblock %}

{% block content %}
<section class="row">
  <div class="col-md-4">
    {% include sidebar %}
  </div>
  <div class="col-md-8">
    <hr class="d-md-none" />
    {% if breadcrumbs %}
    <h3>
    {% for crumb in breadcrumbs %}<a
     href="/~{{ user.username if user else current_user.username }}{{ crumb['url'] }}"
    >{{ crumb['name'] }}</a>{% if not loop.last %}/{% endif %}{% endfor %}
    </h3>
    {% endif %}
    {% if len(jobs) != 0 %}
    <div class="event-list">
      <form>
        <input
          name="search"
          type="text"
          placeholder="Search jobs... status:failed image:bsd tags:sr.ht"
          class="form-control{% if search_error %} is-invalid{% endif %}"
          value="{{ search if search else "" }}" />
        {% if search_error %}
          <div class="invalid-feedback">{{ search_error }}</div>
        {% endif %}
      </form>
      {% for job in jobs %}
      <div class="event">
        <h3>
          <a href="/~{{ job.owner.username }}/job/{{ job.id }}">#{{ job.id }}</a>
          <small>
            <a
              href="/~{{ job.owner.username }}"
            >~{{ job.owner.username }}</a>{% for tag in tags(job.tags) %}/<a
               href="/~{{ job.owner.username }}{{ tag['url'] }}"
            >{{ tag['name'] }}</a>{% endfor %}
          </small>
          <small class="pull-right d-none d-md-inline">
            <span>
              {{ job.updated | date }}
            </span>
            <span class="{{ status_map.get(job.status) or "" }}">
              {{icon(icon_map.get(job.status), cls=status_map.get(job.status, ""))}}
              {{ job.status.value }}
            </span>
          </small>
        </h3>
        {% if job.status != JobStatus.pending and job.status != JobStatus.queued %}
        {% endif %}
        {% if job.note %}
          <p>{{ job.note | md }}</p>
        {% endif %}
        {% for task in sort_tasks(job.tasks) %}
          <span class="status" title="{{ task.status.value }}">
            {{icon(icon_map.get(task.status), cls=status_map.get(task.status, ""))}}
            {{task.name}}
          </span>
        {% endfor %}
        <p class="d-md-none">
          <span class="{{ status_map.get(job.status) or "" }}">
            {{icon(icon_map.get(job.status), cls=status_map.get(job.status, ""))}}
            {{ job.status.value }}
          </span>
          {{ job.updated | date }}
        </p>
      </div>
      {% endfor %}
    </div>
    {% endif %}
    {{pagination()}}
  </div>
</section>
{% endblock %}