mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-27 05:49:04 +01:00
Make navbar responsive
This does not work currently because we do not include bootstrap js
This commit is contained in:
parent
992518f2c7
commit
e6b664f16c
@ -103,6 +103,8 @@ func setupRoutes(router *mux.Router, routes []Route) {
|
|||||||
route.Title = strings.Replace(route.Title, "<ID>", id.(string), 1)
|
route.Title = strings.Replace(route.Title, "<ID>", id.(string), 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
infos["clusters"] = config.Clusters
|
||||||
|
|
||||||
page := templates.Page{
|
page := templates.Page{
|
||||||
Title: route.Title,
|
Title: route.Title,
|
||||||
Config: conf,
|
Config: conf,
|
||||||
|
@ -23,6 +23,10 @@
|
|||||||
<img alt="ClusterCockpit Logo" src="/img/logo.png" class="d-inline-block align-top">
|
<img alt="ClusterCockpit Logo" src="/img/logo.png" class="d-inline-block align-top">
|
||||||
{{end}}
|
{{end}}
|
||||||
</a>
|
</a>
|
||||||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
{{block "navigation" .}}
|
{{block "navigation" .}}
|
||||||
<ul class="navbar-nav mr-auto">
|
<ul class="navbar-nav mr-auto">
|
||||||
{{block "navitem_joblist" .}}
|
{{block "navitem_joblist" .}}
|
||||||
@ -36,7 +40,7 @@
|
|||||||
{{if .Infos.admin }}
|
{{if .Infos.admin }}
|
||||||
{{block "navitem_analysis" .}}
|
{{block "navitem_analysis" .}}
|
||||||
<li class="nav-item ">
|
<li class="nav-item ">
|
||||||
<a class="nav-link fs-5" href="/monitoring/analysis/">
|
<a class="nav-link disabled fs-5" href="/monitoring/analysis/">
|
||||||
<span class="cc-nav-text">Analysis</span>
|
<span class="cc-nav-text">Analysis</span>
|
||||||
<i class="bi-graph-up"></i>
|
<i class="bi-graph-up"></i>
|
||||||
</a>
|
</a>
|
||||||
@ -44,7 +48,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{block "navitem_systems" .}}
|
{{block "navitem_systems" .}}
|
||||||
<li class="nav-item ">
|
<li class="nav-item ">
|
||||||
<a class="nav-link fs-5" href="/monitoring/systems/">
|
<a class="nav-link disabled fs-5" href="/monitoring/systems/">
|
||||||
<span class="cc-nav-text">Systems</span>
|
<span class="cc-nav-text">Systems</span>
|
||||||
<i class="bi-graph-up"></i>
|
<i class="bi-graph-up"></i>
|
||||||
</a>
|
</a>
|
||||||
@ -77,6 +81,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
{{if .Infos.loginId }}
|
{{if .Infos.loginId }}
|
||||||
<div class="d-flex align-items-end">
|
<div class="d-flex align-items-end">
|
||||||
<ul class="navbar-nav ml-auto">
|
<ul class="navbar-nav ml-auto">
|
||||||
|
Loading…
Reference in New Issue
Block a user