2019-02-28 22:30:28 +00:00
|
|
|
{{ $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" }}
|
2019-04-09 16:42:38 +00:00
|
|
|
{{ else if eq $navIcon "settings" }}
|
|
|
|
{{ .Scratch.Set "icon" "wrench-2" }}
|
|
|
|
{{ .Scratch.Set "title" "Settings" }}
|
|
|
|
{{ else if or (eq $navIcon "feedback") }}
|
2019-04-10 15:10:03 +00:00
|
|
|
{{ .Scratch.Set "icon" "nav-chat" }}
|
2019-04-09 16:42:38 +00:00
|
|
|
{{ .Scratch.Set "title" "Feedback" }}
|
|
|
|
{{ else if or (eq $navIcon "cloud") }}
|
|
|
|
{{ .Scratch.Set "icon" "cloud" }}
|
|
|
|
{{ .Scratch.Set "title" "Cloud" }}
|
2019-02-28 22:30:28 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ $icon := .Scratch.Get "icon" }}
|
|
|
|
{{ $title := .Scratch.Get "title" }}
|
|
|
|
|
|
|
|
<div class="nav-icon">
|
|
|
|
<strong><span class ="icon icon-ui-{{ $icon }}"></span> {{ $title }}</strong>
|
|
|
|
</div>
|