-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html
96 lines (81 loc) · 2.9 KB
/
template.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="index, follow">
<title>Status</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.css">
<link rel="stylesheet" href="milligram.min.css">
<link rel="stylesheet" href="style.css">
{# upload your own favicon.png to the root of your repo and replace with href="favicon.png" #}
<link rel="icon" href="https://raw.githubusercontent.com/pyupio/statuspage/master/template/favicon.png">
</head>
<body>
<main class="wrapper">
<nav class="navigation">
<section class="container">
<a class="navigation-title" href="">
{# upload your own logo.png to the root of your repo and replace with src="logo.png" #}
<img class="img" src="https://raw.githubusercontent.com/pyupio/statuspage/master/template/logo.png" height="30">
<h1 class="title">Status</h1>
</a>
</section>
</nav>
<section class="container" id="main">
{% if not panels %}
<div class="panel operational">
All Systems operational.
</div>
{% else %}
{% for severity, systems in panels.items() if systems %}
<div class="panel {{ severity }}">
{{ severity.capitalize() }} on {% for system in systems %}{{ system }}{% if not loop.last %}, {% endif %}{% endfor %}.
</div>
{% endfor %}
{% endif %}
<h4>Systems</h4>
<ul class="systems">
{% for system, data in systems.items() %}
<li>
{{ system }} <span class="status {{ data.status }}">{{ data.status }}</span>
</li>
{% endfor %}
</ul>
<h4>Incidents</h4>
{% if incidents %}
{% for incident in incidents %}
<div class="incident">
<span class="date">{{ incident.created }}</span>
{% if incident.closed %}
<span class="label operational float-right">resolved</span>
{% else %}
<span class="label {{ incident.severity }} float-right">{{ incident.severity }}</span>
{% endif %}
{% for system in incident.systems %}
<span class="label system float-right">{{ system }}</span>
{% endfor %}
<hr/>
<span class="title">{{ incident.title }}</span>
<p>{{ incident.body }}</p>
{% for update in incident.updates %}
<p><em>Update {{ update.created }}</em><br/>
{{ update.body }}
</p>
{% endfor %}
</div>
{% endfor %}
{% else %}
<em>No incidents in the past 90 days.</em>
{% endif %}
</section>
<footer class="footer">
<section class="container">
<hr/>
{# you might want to replace this with a link to your website or something #}
<p>Status page hosted by GitHub, generated with <a href="https://github.com/pyupio/statuspage">pyupio/statuspage</a></p>
</section>
</footer>
</main>
</body>
</html>