forked from laurens/fediversity_website
Ondersteuning voor vertaalde items
This commit is contained in:
parent
c2f82c25f9
commit
c44a947bf6
|
@ -20,23 +20,26 @@
|
||||||
{{ if .Children }}
|
{{ if .Children }}
|
||||||
<li>
|
<li>
|
||||||
<button type="button" aria-haspopup="true" aria-expanded="true" aria-controls="dropdown-{{ $.Scratch.Get "counter" }}" aria-labelledby="button-link-{{ $.Scratch.Get "counter" }}"></button>
|
<button type="button" aria-haspopup="true" aria-expanded="true" aria-controls="dropdown-{{ $.Scratch.Get "counter" }}" aria-labelledby="button-link-{{ $.Scratch.Get "counter" }}"></button>
|
||||||
<a id="button-link-{{ $.Scratch.Get "counter" }}" href="{{ .URL }}">{{ .Name }}</a>
|
<a id="button-link-{{ $.Scratch.Get "counter" }}" href="{{ .URL }}">{{ or (T .Identifier) .Name | strings.FirstUpper | safeHTML }}</a>
|
||||||
<ul class="dropdown" id="dropdown-{{ $.Scratch.Get "counter" }}">
|
<ul class="dropdown" id="dropdown-{{ $.Scratch.Get "counter" }}">
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
<li><a href="{{ .URL }}">{{ or (T .Identifier) .Name | strings.FirstUpper | safeHTML }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<li>
|
<li>
|
||||||
<button type="button" aria-haspopup="true" aria-expanded="true" aria-labelledby="button-link-{{ $.Scratch.Get "counter" }}"></button>
|
<button type="button" aria-haspopup="true" aria-expanded="true" aria-labelledby="button-link-{{ $.Scratch.Get "counter" }}"></button>
|
||||||
<a id="button-link-{{ $.Scratch.Get "counter" }}" href="{{ .URL }}">{{ .Name }}</a>
|
<a id="button-link-{{ $.Scratch.Get "counter" }}" href="{{ .URL }}">{{ or (T .Identifier) .Name | strings.FirstUpper | safeHTML }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<li>
|
<li>
|
||||||
<button type="button" aria-haspopup="false" aria-expanded="true" aria-label="Zoeken"></button>
|
{{ $search := safeHTML (strings.FirstUpper (i18n "search")) }}
|
||||||
<a href="{{ relLangURL "/zoeken/"}}">{{ partial "show-svg-icon.html" (dict "context" . "icon" "magnifying-glass" "title" "Zoeken") }}</a>
|
<button type="button" aria-haspopup="false" aria-expanded="true" aria-label="{{ $search }}"></button>
|
||||||
|
<a href="{{ relLangURL "/zoeken/" }}">
|
||||||
|
{{ partial "show-svg-icon.html" (dict "context" . "icon" "magnifying-glass" "title" $search) }}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Reference in a new issue