This repository has been archived by the owner on Feb 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
status_template
executable file
·91 lines (82 loc) · 2.8 KB
/
status_template
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Bytespeicher - Status</title>
<meta name="description" content="">
<meta name="author" content="">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Mobile Specific Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<script type="text/javascript">
var browser = navigator.userAgent;
var browserRegex = /(Android|BlackBerry|IEMobile|Nokia|iP(ad|hone|od)|Opera M(obi|ini))/;
var isMobile = false;
if(browser.match(browserRegex)) {
isMobile = true;
addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
function hideURLbar(){
window.scrollTo(0,1);
}
}
</script>
<!-- CSS -->
<link rel="stylesheet" href="includes/base.css">
<link rel="stylesheet" href="includes/amazium.css">
<link rel="stylesheet" href="includes/layout.css">
<!-- Favicons -->
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon-precomposed" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/apple-touch-icon-114x114.png" />
<!-- To Top scripts -->
<script src="includes/smoothscroll.js"type="text/javascript" ></script>
<script src="includes/jquery-1.3.min.js" type="text/javascript"></script>
<script src="includes/jquery.easing.1.3.js" type="text/javascript"></script>
<script src="includes/jquery.ui.totop.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$().UItoTop({ easingType: 'easeOutQuart' });
});
</script>
<style>
.green { color: #3d9f35; }
.red { color: #832c2c; }
.orange{ color: #a28c2c; }
</style>
</head>
<body>
<div class="row">
<div class="grid_12">
<h1>Bytespeicher - Status</h1>
<hr>
</div>
</div>
<div class="row">
<div class="grid_3">
<img src="{{ status_icon }}" style="width:90%">
</div>
<div class="grid_9">
{% if status_open %}
<h2>Der Bytespeicher ist <span class="green">offen</span></h2>
{% elif status_open is none %}
<h2>Der Bytespeicher ist <span class="orange">undefiniert</span></h2>
{% else %}
<h2>Der Bytespeicher ist <span class="red">geschlossen</span></h2>
{% endif %}
<p>{{ status_message }}</p>
<p>People present: {{ people_now_present }}</br>
Names: {{ names }}</p>
<p><strong>Letzte Änderung:</strong> {{ status_lastchange }}</p>
{% if temperatures %}
{% for temp in temperatures %}
<p><strong>Temperatur {{ temp.location|capitalize }}:</strong> {{ temp.value }} °C</p>
{% endfor %}
{% endif %}
</div>
<hr>
</div>
</body>
</html>