raumstatus/node/views/index.jade

45 lines
1.1 KiB
Plaintext

extend layout
block content
.ink-grid(ng-controller='StatusCtrl')
.column-group.gutters
.large-20.small-100
div(class="status-icon status-icon-{{simple.state}}")
dl
dt aktueller Status:
dd {{simple.state | statustostring}}
dt letzte Abfrage:
dd {{simple.lastchange | date:'dd.MM.yyyy HH:mm:ss'}}
dt aktive Geräte:
dd {{simple.count}}
.large-80.small-100
h2 Anzahl Geräte:
#graph
h2 Personen Anwesend:
span(ng-repeat="name in simple.names")
{{name}}
span(ng-show=" ! $last ")
| , <!-- -->
block scripts
script(type="text/javascript",src="/js/vendor/d3.min.js")
script(type="text/javascript",src="/js/vendor/d3.layout.min.js")
script(type="text/javascript",src="/js/vendor/rickshaw.min.js")
script(type="text/javascript",src="/js/vendor/moment.min.js")
script(type="text/javascript",src="/js/graph.js")