1
0
mirror of https://github.com/amir20/dozzle.git synced 2026-01-03 03:27:29 +01:00

Removes hostname from title

This commit is contained in:
Amir Raminfar
2018-11-25 12:23:29 -08:00
parent a5bcec68cb
commit 651291ecad
2 changed files with 5 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{ .Hostname }} - Dozzle</title>
<title>Dozzle</title>
<link href="https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono|Gafata" rel="stylesheet" />
<link href="styles.scss" rel="stylesheet" />
<script>

10
main.go
View File

@@ -8,7 +8,6 @@ import (
"html/template"
"log"
"net/http"
"os"
"strings"
"github.com/docker/docker/api/types"
@@ -96,12 +95,11 @@ func handleIndex(box packr.Box, w http.ResponseWriter) {
if base != "/" {
path = base
}
hostname, _ := os.Hostname()
data := struct {
Base string
SSL bool
Hostname string
}{path, ssl, hostname}
Base string
SSL bool
}{path, ssl}
err = tmpl.Execute(w, data)
if err != nil {
panic(err)