display labels at the top of the view for which topics we're watching

Fixes #13
This commit is contained in:
R. Tyler Croy 2015-09-02 09:06:02 -07:00
parent c0ce7eb06a
commit 85c474de3b
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 10 additions and 0 deletions

View File

@ -29,6 +29,7 @@
</div>
<div class="wallboard-title">{{title}}</div>
<div class="topics-watched"></div>
<div class="messages-list-container" id="messages">
</div>
@ -75,6 +76,11 @@
$('#stop').toggle();
watchTopic("{{name}}");
});
// Add our labels into the view
$("{{name}}".split('+')).each(function (idx, value) {
$('.topics-watched').append($("<span class='label label-default'>" + value + '</span>'))
});
</script>
{{> footer}}

View File

@ -38,3 +38,7 @@ body {
.message-show-b64 {
font-size: 0.7em;
}
.topics-watched .label {
margin-right: 3px;
}