d0cd90e7af
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.
30 lines
572 B
HTML
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}}
|