96 lines
4.1 KiB
HTML
96 lines
4.1 KiB
HTML
{{ $currentPage := . }}
|
|
<ul>
|
|
<div class="sidebar-header">
|
|
{{ if eq .Lang "en"}}
|
|
<a class="sidebar-brand" href="/en/">
|
|
<img src="/page-resources/wmi_transparent.png">
|
|
{{ .Site.Title }}
|
|
</a>
|
|
{{else}}
|
|
<a class="sidebar-brand" href="/">
|
|
<img src="/page-resources/wmi_transparent.png">
|
|
{{ .Site.Title }}
|
|
</a>
|
|
{{end}}
|
|
<form class="sidebar-header sidebar-brand" action="https://szukaj.wmi.amu.edu.pl/search/" method="GET">
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" name="q" placeholder="Search" aria-label="Search field, Search field, Text"/>
|
|
<span class="input-group-btn">
|
|
<button type="submit" class="btn btn-default">
|
|
<span class="glyphicon glyphicon-search"></span>
|
|
</button>
|
|
</span>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
{{ if eq .Lang "en"}}
|
|
<div class="sidebar-menu">
|
|
{{ range .Site.Menus.main }}
|
|
{{ if .HasChildren }}
|
|
<li class="item {{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a>
|
|
{{ if or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) }}
|
|
<ul>
|
|
{{ range sort .Children ".Name" }}
|
|
<li class="sub-item{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a>
|
|
{{ if or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) }}
|
|
<ul>
|
|
{{ range sort .Children ".Name" }}
|
|
<li class="subsub-item{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a>
|
|
{{ if or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) }}
|
|
<ul>
|
|
{{ range sort .Children ".Name" }}
|
|
<li class="subsubsub-item{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a></li>
|
|
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</ul>
|
|
{{ else }}
|
|
<div class="sidebar-menu">
|
|
{{ range .Site.Menus.main }}
|
|
{{ if .HasChildren }}
|
|
<li class="item {{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a>
|
|
{{ if or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) }}
|
|
<ul>
|
|
{{ range sort .Children ".KeyName" }}
|
|
<li class="sub-item{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a>
|
|
{{ if or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) }}
|
|
<ul>
|
|
{{ range sort .Children ".KeyName" }}
|
|
<li class="subsub-item{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a>
|
|
{{ if or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .) }}
|
|
<ul>
|
|
{{ range sort .Children ".KeyName" }}
|
|
<li class="subsubsub-item{{ if $currentPage.IsMenuCurrent "main" . }} active{{ end }}"><a href="{{ .URL }}">{{ .Name }}</a></li>
|
|
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</ul>
|
|
{{ end }}
|