making every nice and shiny

This commit is contained in:
Lucas Pleß 2013-10-21 22:02:41 +02:00
parent 9d969c94d3
commit 56ccca6bc0
5 changed files with 21 additions and 10 deletions

View File

@ -14,4 +14,9 @@
.status-icon-unknown {
background-image: url("/img/yellow.png");
}
}
.members {
margin-top: 8pt;
/*padding: 0;*/
}

View File

@ -57,7 +57,7 @@ angular.module('roomstateapp.services', []).
angular.module('roomstateapp.statusfilter', []).filter('statustostring', function() {
return function(input) {
return input == true ? 'geöffnet' : input == false ? 'geschlossen' : 'unbekannt';
return input == true ? 'geöffnet' : input == false ? 'geschlossen' : 'unbekannt';
};
});

View File

@ -70,9 +70,14 @@ function work() {
snmpMac.poll();
ippoll.pollCount();
ippoll.pollState();
// simpleanswer.names.length = 0;
// for(var i=0;i<4+Math.random() * 100;i++) {
// simpleanswer.names.push("nickname"+i);
// }
// io.sockets.emit('sdata', { "data": simpleanswer });
}
setInterval(work, 20000);
setInterval(work, 10000);
work();
app.set('snmpMac', snmpMac); //TODO: wie kann man das schoener machen? (Modul in die Routes reintun)

View File

@ -22,11 +22,12 @@ block content
.large-80.small-100
p Personen Anwensend:
ul
li(ng-repeat="name in simple.names")
dl
dt Personen Anwesend:
dd
span(ng-repeat="name in simple.names")
{{name}}
span(ng-show=" ! $last ")
| , <!-- -->

View File

@ -17,8 +17,8 @@ html(ng-app="roomstateapp")
header
h1 chaostreff status
.main-content
block content
.main-content
block content
footer