1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 11:46:16 +00:00
mycorrhiza/interwiki/view_interwiki.html
Timur Ismagilov b7d524880f Interwiki: Implement /interwiki
It just shown what entries there are. It will let administrators modify it later.
2022-05-27 16:43:40 +03:00

34 lines
716 B
HTML

{{define "interwiki map"}}Interwiki map{{end}}
{{define "title"}}{{template "interwiki map"}}{{end}}
{{define "body"}}
<main class="main-width">
<h1>{{template "interwiki map"}}</h1>{{$emojies := .Emojies}}
{{if len .Entries}}
<ul>
{{range $i, $wiki := .Entries}}
<li>
<dl>
<dt>Names</dt>
{{range .Names}}<dd>{{.}}</dd>{{end}}
<dt>Description</dt>
<dd>{{.Description}}</dd>
<dt>Engine</dt>
<dd>{{index $emojies $i}}</dd>
<dt>URL</dt>
<dd><a href="{{.URL}}">{{.URL}}</a></dd>
<dt>Link format</dt>
<dd>{{.LinkFormat}}</dd>
</dl>
</li>
{{end}}
</ul>
{{else}}
<p>No interwiki map set.</p>
{{end}}
</main>
{{end}}