{{ $navIcon := lower (.Get 0) | default "influx" }}

{{ if or (eq $navIcon "admin") (eq $navIcon "influx") }}
  {{ .Scratch.Set "icon" "influx-icon" }}
  {{ .Scratch.Set "title" "username (org-name)" }}
  {{ .Scratch.Set "short_title" "User" }}
{{ else if or (eq $navIcon "data-explorer") (eq $navIcon "data explorer") (eq $navIcon "explore") }}
  {{ .Scratch.Set "icon" "data-explorer" }}
  {{ .Scratch.Set "title" "Data Explorer" }}
  {{ .Scratch.Set "short_title" "Explore" }}
{{ else if or (eq $navIcon "dashboards") (eq $navIcon "boards") }}
  {{ .Scratch.Set "icon" "dashboards" }}
  {{ .Scratch.Set "title" "Dashboards" }}
  {{ .Scratch.Set "short_title" "Dashboards" }}
  {{ .Scratch.Set "short_title" "Boards" }}
{{ else if eq $navIcon "tasks" }}
  {{ .Scratch.Set "icon" "calendar" }}
  {{ .Scratch.Set "title" "Tasks" }}
  {{ .Scratch.Set "short_title" "Tasks" }}
{{ else if or (eq $navIcon "monitor") (eq $navIcon "alerts") (eq $navIcon "bell") }}
  {{ .Scratch.Set "icon" "bell" }}
  {{ .Scratch.Set "title" "Alerts" }}
  {{ .Scratch.Set "short_title" "Alerts" }}
{{ else if or (eq $navIcon "disks") (eq $navIcon "load data") (eq $navIcon "load-data") (eq $navIcon "data") }}
  {{ .Scratch.Set "icon" "disks-nav" }}
  {{ .Scratch.Set "title" "Load Data" }}
  {{ .Scratch.Set "short_title" "Data" }}
{{ else if eq $navIcon "settings" }}
  {{ .Scratch.Set "icon" "wrench-nav" }}
  {{ .Scratch.Set "title" "Settings" }}
  {{ .Scratch.Set "short_title" "Settings" }}
{{ else if or (eq $navIcon "org") (eq $navIcon "organization") }}
  {{ .Scratch.Set "icon" "users-trio" }}
  {{ .Scratch.Set "title" "Organization" }}
  {{ .Scratch.Set "short_title" "Org" }}
{{ end }}

{{ if or (eq $navIcon "profile") (eq $navIcon "account") }}
  <div class="nav-items">
    <div class="nav-item account small">
      <div class="acct-inner">
        <div class="acct-icon">
          <span class="icon icon-ui-user"></span>
        </div>
      </div>
    </div>
    <div class="nav-item account">
      <div class="acct-inner">
        <div class="acct-icon"><span class="icon icon-ui-user"></span></div>
        <div class="acct-label">
          <div class="username">username</div>
          <div class="orgname">org-name</div>
        </div>
      </div>
    </div>
  </div>
{{ else }}
  {{ $icon := .Scratch.Get "icon" }}
  {{ $title := .Scratch.Get "title" }}
  {{ $shortTitle := .Scratch.Get "short_title" }}
  <div class="nav-items">
    <div class="nav-item">
      <div class="nav-icon small">
        <span class ="icon icon-ui-{{ $icon }}"></span>
        <div class="nav-icon-label">
          {{ $shortTitle }}
        </div>
      </div>
    </div>
    <div class="nav-item">
      <div class="nav-icon">
        <span class ="icon icon-ui-{{ $icon }}"></span>
        <div class="nav-icon-label">
          {{ $title }}
        </div>
      </div>
    </div>
  </div>
{{ end }}
