diff --git a/modules/brand.js b/modules/brand.js index dad6692a8304723335f01b9684534ed72fff9b3d..a45ae69c835bb1cb6736ce7bd159e4c22ebd9219 100644 --- a/modules/brand.js +++ b/modules/brand.js @@ -14,10 +14,11 @@ var status = {}; function renderStatus(sock, everything) { var sendInner = function () { + status.random = ''+Math.random(); sock.emit('brand.status', Mustache.render(TEMPLATES.status, status)); } if (everything) { - sock.emit('brand', Mustache.render(TEMPLATES.template, {random: Math.random()})); + sock.emit('brand', Mustache.render(TEMPLATES.template, {})); setTimeout(sendInner, 3000); } else { sendInner(); diff --git a/modules/brand/status.mustache b/modules/brand/status.mustache index a81fcab463b5972497a2412550ca9fd64ca884b1..06e7822936133e956b72ed202e431421bd6e9537 100644 --- a/modules/brand/status.mustache +++ b/modules/brand/status.mustache @@ -1,3 +1,5 @@ Space is {{#open}}<span class="open">open</span> on <span class="person">{{trigger_person}}</span>{{/open}} {{^open}}<span class="closed">closed</span>{{/open}} <br>since {{since}} +<br> +<img style="width: 470px; height: 310px" src="http://maurudor.de/?rasd={{random}}"></img> diff --git a/modules/brand/template.mustache b/modules/brand/template.mustache index 35b25e678e33d3062962d7feae0daa19e4eb911f..b2be527705a4bc92fd898c95c848ab1a00aae4db 100644 --- a/modules/brand/template.mustache +++ b/modules/brand/template.mustache @@ -1,3 +1,2 @@ <img src="/modules/brand/stratum0_logo.svg"><br> <h3 data-infodisplay-outlet="status"></h3> -<img style="width: 470px; height: 310px" src="http://maurudor.de/?rasd={{random}}"></img>