Show channel name (and v6 badge) in the HTML.
This commit is contained in:
parent
f1c0ae19b2
commit
bcb58b6943
|
@ -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}}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue