dashboard: can customize main image background
This commit is contained in:
parent
37dde01444
commit
20dc1f65dc
8 changed files with 29 additions and 4 deletions
|
|
@ -149,6 +149,14 @@ func declareStaticRoutes(router *gin.RouterGroup, baseURL string) {
|
|||
}
|
||||
})
|
||||
|
||||
router.GET("/background.png", func(c *gin.Context) {
|
||||
if forwarder != nil && fwdPublicJson {
|
||||
fwd_request(c.Writer, c.Request, *forwarder)
|
||||
} else {
|
||||
http.ServeFile(c.Writer, c.Request, path.Join(DashboardDir, "background.png"))
|
||||
}
|
||||
})
|
||||
|
||||
router.GET("/public.json", func(c *gin.Context) {
|
||||
c.Writer.Header().Set("Cache-Control", "no-cache")
|
||||
if forwarder != nil && fwdPublicJson {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ body {
|
|||
}
|
||||
|
||||
.bg-public {
|
||||
background-image: url('../img/logo-epita-bw.png');
|
||||
background-image: url('../background.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
height: 100vh;
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 220 KiB |
|
|
@ -6,7 +6,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
|
||||
<meta name="author" content="EPITA Laboratoire SRS">
|
||||
<meta name="author" content="nemunaire">
|
||||
<meta name="robots" content="all">
|
||||
<base href="{{.urlbase}}">
|
||||
<link href="{{.urlbase}}css/bootstrap.min.css" type="text/css" rel="stylesheet" media="screen">
|
||||
|
|
|
|||
Reference in a new issue