MovieNight/static/help.html
Zorchenhimer d0cd90e7af Properly implement the help popup
Move the help html to a template and populate the lists dynamically.
This also splits out the base HTML stuff (eg, the <html> and <body>
tags) to a base template file.
2019-03-16 16:15:55 -04:00

30 lines
572 B
HTML

{{define "header"}}
{{end}}
{{define "body"}}
<div id="helpbody">
<h2>Commands</h2>
<dl>
{{range $k, $v := .Commands}}
<dt>{{$k}}</dt><dd>{{$v}}</dd>
{{end}}
</dl>
{{if .ModCommands}}
<h2>Moderator</h2>
<dl>
{{range $k, $v := .ModCommands}}
<dt>{{$k}}</dt><dd>{{$v}}</dd>
{{end}}
</dl>
{{end}}
{{if .AdminCommands}}
<h2>Administrator</h2>
<dl>
{{range $k, $v := .AdminCommands}}
<dt>{{$k}}</dt><dd>{{$v}}</dd>
{{end}}
</dl>
{{end}}
</div>
{{end}}