28 lines
1.0 KiB
HTML
28 lines
1.0 KiB
HTML
{{ $navIcon := lower (.Get 0) | default "admin" }}
|
|
{{ if eq $navIcon "admin" }}
|
|
{{ .Scratch.Set "icon" "influx-icon" }}
|
|
{{ .Scratch.Set "title" "admin" }}
|
|
{{ else if or (eq $navIcon "data-explorer") (eq $navIcon "data explorer") }}
|
|
{{ .Scratch.Set "icon" "data-explorer" }}
|
|
{{ .Scratch.Set "title" "Data Explorer" }}
|
|
{{ else if eq $navIcon "dashboards" }}
|
|
{{ .Scratch.Set "icon" "dashboards" }}
|
|
{{ .Scratch.Set "title" "Dashboards" }}
|
|
{{ else if eq $navIcon "tasks" }}
|
|
{{ .Scratch.Set "icon" "calendar" }}
|
|
{{ .Scratch.Set "title" "Tasks" }}
|
|
{{ else if or (eq $navIcon "organizations") (eq $navIcon "orgs") }}
|
|
{{ .Scratch.Set "icon" "organizations" }}
|
|
{{ .Scratch.Set "title" "Organizations" }}
|
|
{{ else if or (eq $navIcon "configuration") (eq $navIcon "config") }}
|
|
{{ .Scratch.Set "icon" "wrench" }}
|
|
{{ .Scratch.Set "title" "Configuration" }}
|
|
{{ end }}
|
|
|
|
{{ $icon := .Scratch.Get "icon" }}
|
|
{{ $title := .Scratch.Get "title" }}
|
|
|
|
<div class="nav-icon">
|
|
<strong><span class ="icon icon-ui-{{ $icon }}"></span> {{ $title }}</strong>
|
|
</div>
|