Allow specifying display names for servers

This commit is contained in:
Henri
2021-04-13 21:58:50 +02:00
parent 974e809deb
commit 056ef3769e
6 changed files with 54 additions and 10 deletions

View File

@@ -31,10 +31,10 @@
<a class="nav-link{{ if .AllServersLinkActive }} active{{ end }}"
href="/{{ $option }}/{{ .AllServersURL }}/{{ $target }}"> All Servers </a>
</li>
{{ range $k, $v := .Servers }}
{{ range $k, $v := .ServersEscaped }}
<li class="nav-item">
<a class="nav-link{{ if eq $server $k }} active{{ end }}"
href="/{{ $option }}/{{ $k }}/{{ $target }}">{{ html $v }}</a>
<a class="nav-link{{ if eq $server $v }} active{{ end }}"
href="/{{ $option }}/{{ $v }}/{{ $target }}">{{ html (index $.ServersDisplay $k) }}</a>
</li>
{{ end }}
</ul>