| OLD | NEW |
| (Empty) |
| 1 {{define "title"}}settings{{end}} | |
| 2 | |
| 3 {{define "head"}}{{end}} | |
| 4 | |
| 5 {{ define "body" }} | |
| 6 <div class="header"> | |
| 7 <a href="{{ .Navi.SiteTitle.URL }}">{{ .Navi.SiteTitle.Label }}</a> | |
| 8 </div> | |
| 9 <hr/> | |
| 10 <div class="content"> | |
| 11 <h1>Settings</h1> | |
| 12 | |
| 13 <div class="column"> | |
| 14 <h2>Themes</h2> | |
| 15 <form action="{{.Settings.ActionURL}}" method='POST'> | |
| 16 <input type="hidden" name="xsrf_token" value="{{.XsrfToken}}"> | |
| 17 <select name="theme"> | |
| 18 {{ $selected := .Settings.Theme.Selected }} | |
| 19 {{ range $index, $value := .Settings.Theme.Choices }} | |
| 20 {{ if eq $value $selected }} | |
| 21 <option value={{$value}} selected>{{$value}}</option> | |
| 22 {{ else }} | |
| 23 <option value={{$value}}>{{$value}}</option> | |
| 24 {{ end }} | |
| 25 {{ end}} | |
| 26 </select> | |
| 27 <button type="submit" label="submit">submit</button> | |
| 28 </div> | |
| 29 {{ end }} | |
| OLD | NEW |