25562e0d54
* added pagination * cleanup * indentation fix * fix * Loads theme from context * Basic theme switching working * working properly * Fuck golint tbqh * united language and theme into one settings page * made the settings page a little nicer * fixed it so it works properly now * removed parts of inline js and fixed bug * removed remains of other theme switching method * fixed very minor bug * fix
31 lignes
998 o
HTML
31 lignes
998 o
HTML
{{define "title"}}{{call $.T "change_language"}}{{end}}
|
|
{{define "content"}}
|
|
<div class="blockBody">
|
|
<hr>
|
|
<form role="form" method="POST">
|
|
<div class="form-group">
|
|
<h3>{{call $.T "language"}}</h3>
|
|
<select id="language" name="language" class="form-input">
|
|
{{ $currentLanguage := .Language }}
|
|
{{ range $tag, $translatedName := $.Languages }}
|
|
<option value="{{ $tag }}" {{ if eq $currentLanguage $tag }}selected{{end}}>{{ $translatedName }}</option>
|
|
{{ end }}
|
|
</select>
|
|
<h3>{{call $.T "theme"}}</h3>
|
|
<select id="theme-selector" name="theme" class="form-input" onchange="switchThemes()">
|
|
<option value="{{$.Theme}}" selected>{{call $.T "select"}}</option>
|
|
<option value="g">/g/</option>
|
|
<option value="tomorrow">Tomorrow</option>
|
|
<option value="">None</option>
|
|
</select>
|
|
</br>
|
|
</br>
|
|
<button type="submit" class="form-input btn">{{call $.T "save_changes"}}</button>
|
|
</div>
|
|
|
|
</form>
|
|
<div style="padding-bottom: 1em"></div>
|
|
</div>
|
|
{{end}}
|
|
|
|
|