Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/templates/site/user/public/settings.jet.html
kilo 88904bade9 Medium changes (#1642)
* lower top margin for comment usernames & avatar

* Update classic.css

* temporary workaround to hide quadrupled comments

* Update view.jet.html

* Add "search from user" input below user rss link, change styling of follow button to fit other links

* all into the same div

* Remove padding of usersearch input in panel, remove useless css rule

* min-width for user buttons, max-width for the input

* Don't show "search from this user" if it's your profile

* remove max-width when responsive userprofile kicks in

* remove useless css rule

* Update view.jet.html

* le fix

* optimize stats.go a bit and add comments

* Update stats.go

* Update template_functions_test.go

* Update template_functions.go

* Remove hardcoded theme list, generate dynamically

* ditto

* Add possibility of forcing a theme for everyone

* in the .yml config file

* Make it ignore both user settings and cookies

* add forced theme in default theme config struct

* Update publicSettings.go

* fix missing , & travis

* Update template_functions_test.go

* Update main.css

* fix travis

* Update template_functions_test.go

* travis
2017-10-07 01:39:38 +02:00

66 lignes
2,3 Kio
HTML

{{ extends "layouts/index_site" }}
{{ import "layouts/partials/helpers/csrf" }}
{{block title()}}{{ T("change_settings")}}{{end}}
{{block content_body()}}
<div style="text-align: left;" class="box">
<form role="form" method="POST">
{{ yield csrf_field() }}
<div id="settings-container">
<span class="form-group">
<h3>{{ T("language")}}</h3>
<select id="language" name="language" class="form-input">
{{ range translatedName := Form.Languages }}
<option value="{{ translatedName[2] }}" {{ if Form.Current == translatedName[2] }}selected{{end}}>{{ translatedName[0] }}</option>
{{ end }}
</select>
</span>
<span class="form-group">
<h3>{{ T("theme")}}</h3>
<select id="theme-selector" name="theme" class="form-input" onchange="switchThemes()">
{{ range theme := getThemeList()}}
<option value="{{theme}}"{{ if Theme == theme}} selected{{end}}>{{formatThemeName(theme)}}</option>
{{end}}
</select>
</span>
<span class="form-group">
<h3>{{ T("old_nav") }}</h3>
<p>{{ T("old_nav_explanation") }}</p>
<select id="oldNav-selector" name="oldNav" class="form-input">
<option value="false">{{ T("disabled") }}</option>
<option value="true" {{if OldNav}}selected{{end}}>{{ T("enabled") }}</option>
</select>
<br/>
</span>
<span class="form-group">
<h3>{{ T("mascot")}}</h3>
<select id="mascot-selector" name="mascot" class="form-input">
{{ T("mascot")}}
<option value="show" {{ if Mascot == "show" }} selected{{end}}>{{ T("show")}}</option>
<option value="hide" {{ if Mascot == "hide" }} selected{{end}}>{{ T("hide")}}</option>
</select>
</span>
<span class="form-group">
<h3>{{ T("mascot_url")}}</h3>
<input type="text" name="mascot_url" class="form-input" value="{{ MascotURL }}"/>
<br/>
</span>
<span class="form-group">
<h3>{{ T("alternating_color") }}</h3>
<select id="altColors-selector" name="altColors" class="form-input">
<option value="false">{{ T("disabled") }}</option>
<option value="true" {{if AltColors}}selected{{end}}>{{ T("enabled") }}</option>
</select>
<br/>
</span>
<p>{{ T("cookies")}}</p>
<button type="submit" class="form-input btn">{{ T("save_changes")}}</button>
</div>
</form>
</div>
{{end}}