mirror of https://github.com/reiseburo/offtopic
display labels at the top of the view for which topics we're watching
Fixes #13
This commit is contained in:
parent
c0ce7eb06a
commit
85c474de3b
|
@ -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}}
|
||||
|
|
|
@ -38,3 +38,7 @@ body {
|
|||
.message-show-b64 {
|
||||
font-size: 0.7em;
|
||||
}
|
||||
|
||||
.topics-watched .label {
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue