Show channel name (and v6 badge) in the HTML.

This commit is contained in:
Igor Mandrigin 2018-02-28 19:30:58 +01:00 committed by Igor Mandrigin
parent f1c0ae19b2
commit bcb58b6943
2 changed files with 3 additions and 2 deletions

View File

@ -69,7 +69,7 @@ h1 {
<body>
<div class="content">
<div class="header">
<h1>#status</h1>
<h1>#{{.ChannelName}} <sub><small>v6</small></sub></h1>
</div>
<div class="chat">
{{range .Messages}}

View File

@ -39,7 +39,8 @@ func main() {
})
r.GET("/html", func(c *gin.Context) {
c.HTML(http.StatusOK, "index.tmpl", gin.H{
"Messages": messages.Messages(conf.Channel),
"ChannelName": conf.Channel,
"Messages": messages.Messages(conf.Channel),
})
})
r.Run() // listen and serve on 0.0.0.0:8080