summaryrefslogtreecommitdiff
path: root/src/templates
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-09-08 17:59:56 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2015-09-08 17:59:56 +0200
commit694cc18a40ae5c71ec280b3aea2e1fa4d51ab640 (patch)
treeb052776e72bab7d9fed89975a5b2dd44049eb418 /src/templates
parenta767c17582caf9df45df587451773ee6f7bc2e49 (diff)
downloadbeer-duke-694cc18a40ae5c71ec280b3aea2e1fa4d51ab640.tar.gz
beer-duke-694cc18a40ae5c71ec280b3aea2e1fa4d51ab640.tar.bz2
beer-duke-694cc18a40ae5c71ec280b3aea2e1fa4d51ab640.tar.xz
beer-duke-694cc18a40ae5c71ec280b3aea2e1fa4d51ab640.zip
wip
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/footer.html2
-rw-r--r--src/templates/settings.html13
-rw-r--r--src/templates/tap.html8
3 files changed, 18 insertions, 5 deletions
diff --git a/src/templates/footer.html b/src/templates/footer.html
index 182554d..4820e68 100644
--- a/src/templates/footer.html
+++ b/src/templates/footer.html
@@ -1,4 +1,4 @@
-<div ng-if="settings.showSettings()">
+<div ng-if="settings.showSettings">
<hr/>
<a href="#/settings">settings</a><br/>
connected = {{mqtt.connected()}}
diff --git a/src/templates/settings.html b/src/templates/settings.html
index f118e47..cca9f22 100644
--- a/src/templates/settings.html
+++ b/src/templates/settings.html
@@ -1,4 +1,4 @@
-<div ng-init="clientId = ctrl.settings.clientId(); showSettings = ctrl.settings.showSettings()">
+<div>
<h2>Settings</h2>
<p>
@@ -8,14 +8,21 @@
<p>
<label>
showSettings
- <input type="checkbox" ng-model="ctrl.showSettings">
+ <input type="checkbox" ng-model="ctrl.settings.showSettings">
</label>
</p>
<p>
<label>
clientId
- <input type="text" ng-model="ctrl.clientId">
+ <input type="text" ng-model="ctrl.settings.clientId">
+ </label>
+ </p>
+
+ <p>
+ <label>
+ TS
+ <input type="text" ng-model="ctrl.settings.tsUrl">
</label>
</p>
diff --git a/src/templates/tap.html b/src/templates/tap.html
index 48d5e37..bf99523 100644
--- a/src/templates/tap.html
+++ b/src/templates/tap.html
@@ -1,5 +1,11 @@
<div>
Last: {{ctrl.message | json}}
- <ng-include src="'templates/footer.html'"/>
+ <ng-include src="'templates/footer.html'"></ng-include>
+
+ <div ng-if="settings.showSettings">
+ Messages:
+ <pre ng-repeat="m in ctrl.messages|limitTo:10">{{m}}</pre>
+ </div>
+
</div>