Allow ?title=Foo to set a dashboard title

Fixes #16
This commit is contained in:
R. Tyler Croy 2015-09-02 08:55:52 -07:00
parent fc33f70b4a
commit c0ce7eb06a
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
3 changed files with 12 additions and 2 deletions

View File

@ -28,7 +28,9 @@
</div>
</div>
<div id="messages">
<div class="wallboard-title">{{title}}</div>
<div class="messages-list-container" id="messages">
</div>
</div>

View File

@ -15,6 +15,14 @@ body {
margin-right: 3px;
}
.wallboard-title {
margin-left: auto;
margin-right: auto;
font-size: 3em;
font-weight: bold;
text-align: center;
}
.message-raw {
}

View File

@ -43,7 +43,7 @@ ratpack {
}
get('topics/:name/watch') {
render handlebarsTemplate('topic-watch.html', name: pathTokens.name)
render handlebarsTemplate('topic-watch.html', name: pathTokens.name, title: request.queryParams.title)
}
get('topics/:name/websocket') { ctx ->