-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
71 lines (60 loc) · 1.7 KB
/
index.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
---
layout: default
title: Home
---
{% assign active = site.posts | where_exp: "item", "item.state == 'active'" %}
{% assign inactive = site.posts | where_exp: "item", "item.state == nil" %}
{% assign severity = 0 %}
{% for post in active %}
{% assign post_severity = post.severity|default: 1 %}
{% if post_severity > severity %}
{% assign severity = post_severity %}
{% endif %}
{% endfor %}
<div id="status">
<img src="{{ site.baseurl }}/images/sev{{ severity }}.svg"
class="severity"/>
<p class="sev{{severity}}">
{% if severity == 0 %}
All systems are operating normally.
{% elsif severity == 1 %}
There are one or more service interruptions.
{% else %}
There is a critical service outage.
{% endif %}
</p>
</div>
<h2>Current status</h2>
<div class="posts">
{% if active.size > 0 %}
{% for post in active %}
<article class="post">
<h3><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h3>
<div class="post-info">
Posted {{ post.date | date: "%Y-%m-%d" }}
</div>
<div class="entry">
{{ post.excerpt }}
</div>
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
</article>
{% endfor %}
{% else %}
There are no active status notifications at this time.
{% endif %}
</div>
<h2>Recent status</h2>
<div class="posts">
{% for post in inactive limit:3 %}
<ul>
<li>[{{ post.date | date: "%Y-%m-%d" }}] <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
</ul>
{% endfor %}
</div>
<h2>Archives<?h2>
<p>
<a href="/archive/">All status updates</a>
</p>
<footer>
To report a problem, please open a ticket in <a href="https://osticket.massopen.cloud">our ticketing system</a>.
</footer>