diff options
Diffstat (limited to 'templates/nav.html')
-rw-r--r-- | templates/nav.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/nav.html b/templates/nav.html index ea1e1af..117f48a 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -16,9 +16,11 @@ <ul> {{ if .pagelink1options }} {{ range $opt := .pagelink1options }} + {{ if eq $opt.Name $.pagelink1.Name }}{{ else }} <li><a class="local" href="{{ $opt.Target }}">{{ $opt.Name }}</a></li> {{ end }} {{ end }} + {{ end }} </ul> </li> {{ end }} @@ -28,9 +30,11 @@ <ul> {{ if .pagelink2options }} {{ range $opt := .pagelink2options }} + {{ if eq $opt.Name $.pagelink2.Name }}{{ else }} <li><a class="local" href="{{ $.pagelink1.Target }}{{ $opt.Target }}">{{ $opt.Name }}</a></li> {{ end }} {{ end }} + {{ end }} </ul> </li> {{ end }} @@ -40,16 +44,18 @@ <ul> {{ if .pagelink3options }} {{ range $opt := .pagelink3options }} + {{ if eq $opt.Name $.pagelink3.Name }}{{ else }} <li><a class="local" href="{{ $.pagelink1.Target }}{{ $.pagelink2.Target }}{{ $opt.Target }}">{{ $opt.Name }}</a></li> {{ end }} {{ end }} + {{ end }} </ul> </li> {{ end }} </ul> <ul style="float: right"> <li> - <a href="https://github.com/HanEmile/r2wars-web">{{ .version }} src</a> + <a href="https://github.com/HanEmile/r2wars-web">{{if .version}}{{ .version }} src{{else}}src{{end}}</a> </li> </ul> </nav> |