From ab1bdfd0d66e9a1b72433ecb374584e7a123023f Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 2 Apr 2016 23:43:12 +0200 Subject: added /upload proxy to apache sample config diff --git a/README b/README index 1144e89..9dc98a0 100644 --- a/README +++ b/README @@ -71,8 +71,9 @@ add the following to the virtualhost config: - ProxyPass "/ntp" "ws://localhost:3000/ntp" - ProxyPass "/rhimportd" "ws://localhost:4080/public/socket" + ProxyPass "/ntp" "ws://localhost:3000/ntp" + ProxyPass "/rhimportd" "ws://localhost:4080/public/socket" + ProxyPass "/upload" "http://localhost:4080/public/upload" DocumentRoot /var/www/rhwebimport/www/ -- cgit v0.10.2 From f66535fef191f9183fde73a6eeb01e8678593c7e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 15 Apr 2016 23:11:00 +0200 Subject: make show rhythm fancier diff --git a/www/index.html b/www/index.html index eb8e3d2..68b2d36 100644 --- a/www/index.html +++ b/www/index.html @@ -160,7 +160,10 @@ Tag:
- Rythmus: + Rythmus: 1 + 2 + 3 + 4
Startzeit: diff --git a/www/js/shows.js b/www/js/shows.js index 8fcba8b..1086620 100644 --- a/www/js/shows.js +++ b/www/js/shows.js @@ -189,10 +189,23 @@ Rdxport.ShowView = function(model) { Rdxport.ShowView.prototype.render = function() { $('#show-title').text(this.model.title); $('#show-dow').text(weekday[this.model.dayofweek]); - $('#show-rhythm').text(this.model.rhythm); $('#show-starttime').text(this.model.starttime); $('#show-length').text(this.model.length + ' Min.'); + for(var w = 0; w < 4; w++) { + if(this.model.rhythm.charAt(w) == '1') { + var s = $('#show-rhythm-w' + (w+1)).attr('class', 'label') + switch(w+1) { + case 1: s.addClass('label-info'); break; + case 2: s.addClass('label-warning'); break; + case 3: s.addClass('label-success'); break; + case 4: s.addClass('label-danger'); break; + } + } else { + $('#show-rhythm-w' + (w+1)).attr('class', 'label label-default') + } + } + var $tableBody = $('#app-shows table tbody'); $('tr', $tableBody).remove(); -- cgit v0.10.2