forked from SebastianSchildt/screenly-ose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsystem_info.haml
72 lines (63 loc) · 1.96 KB
/
system_info.haml
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
!!! 5
%html
%head
%meta(charset="utf-8")
%title Screenly OSE
%link(href="/static/css/bootstrap.css", rel="stylesheet")
%link(href="/static/css/screenly.css", rel="stylesheet")
%script(src="/static/js/jquery-1.9.1.min.js")
%body
.navbar.navbar-fixed-top
.navbar-inner
.container
%a.brand(href="/")
%img(src='static/img/screenly_ose_logo.png')
%ul.nav.pull-right
- if not up_to_date:
%li.update-available
%a(href="http://www.screenlyapp.com/ose.html#upgrade")
%i.icon-circle-arrow-down.icon-white
Update Available
%li
%a(href="/settings")
%i.icon-cog.icon-white
Settings
%li.divider-vertical
%li
%a(href="/system_info")
%i.icon-tasks.icon-white
System Info
.container
.row
.span12
%h1.page-header
System Info
%table.table.table-bordered(style="width: 100%")
%thead
%tr
%th Load Average
%th Free Space
%th Uptime
%th Monitor Info
%tbody
%tr
%td ${loadavg}
%td ${free_space}
%td ${uptime.days} days and ${uptime.seconds / 3600} hours
%td ${display_info}
%section
.header
Latest Viewer Logs
- if viewlog:
%table.table.table-striped
- for line in viewlog:
%tr
%td ${line}
- else:
%p There are no recent log messages.
#footer
.container
.copy
© <strong>2012-2016.</strong> WireLoad, Inc.
%a(id="wireload-logo", href="http://wireload.net/", target="_blank")
%img(src="/static/img/wireload-logo.png", alt="WireLoad")