blob: 9b0aa581a7667a48179d3b8aa2fde3b77c6f0115 (
plain) (
blame)
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
{% extends "base.html" %} {% block title %}/{{ project_path }}{% endblock %} {%
block path %}/<a href="/{{ project_path }}">{{ project_path }}</a>{% endblock %}
{% block extrastyle %}
<style
type="text/css"
media="all"
>
.heading-name {
color: var(--secondary) !important;
font-weight: bolder;
font-style: italic;
text-decoration: none;
}
.heading-info {
display: flex;
flex-direction: row;
place-content: space-between;
.heading-url {
color: var(--blue);
text-decoration: underline;
font-style: italic;
}
.heading-cron {
color: var(--orange);
text-decoration: none;
font-weight: bolder;
}
}
.fullbody {
display: grid;
place-items: stretch;
grid-template-columns: repeat(2, 1fr);
padding: 20px;
gap: 20px;
.runcard {
display: felx;
background-color: var(--overlay);
padding: 10px;
border-radius: 4px;
width: 90%;
.runheader {
display: flex;
flex-direction: row;
place-content: space-between;
.runnumber {
font-weight: bolder;
color: var(--secondary);
}
.rundate {
font-size: 12px;
color: var(--secondary);
}
}
.runstatus {
padding: 4px;
color: var(--overlay);
&.success::before {
content: "success";
background-color: var(--green);
border-radius: 5px;
padding: 4px;
}
&.failure::before {
content: "failure";
background-color: var(--red);
border-radius: 5px;
padding: 4px;
}
&.running::before {
content: "running";
background-color: var(--brown);
border-radius: 5px;
padding: 4px;
}
}
}
}
</style>
{% endblock %} {% block headingcontent %}
<h2 class="heading-name">{{ project.name }}</h2>
<h4 class="heading-info"
><a
href="{{ project.url }}"
target="_blank"
class="heading-url"
>{{ project.url }}</a
><a
href="https://crontab.guru/#{{ project.cron }}"
target="_blank"
class="heading-cron"
>{{ project.cron }}</a
></h4
>
{% endblock %} {% block content %}
<div class="fullbody">
{% for run in runlist %}
<div class="runcard">
<h3 class="runheader"
><span
>run
<span class="runnumber"
><a href="/{{ project_path }}/{{ run.number }}"
>#{{ run.number }}</a
></span
></span
><span class="rundate">{{ run.date }}</span></h3
>
<hr style="margin: 5px" />
<h4
class="runstatus {{ {true: 'success', false: 'failure', none: 'running'}[run.status]
}}"
></h4>
</div>
{% endfor %}
</div>
{% endblock %}
<!-- vim: set filetype=jinja: -->
|