5a184bfb50
* Non-bold torrent name when using alternating background colors * Add alternating colors for g.css * Add alternating colors for classic.css * Add alternating colors for tomorreuw * Update classic.css * Add alternating colors to settings page * Add alt-colors class to tbody if enabled * Add GetAltColorsFromRequest() function to get AltColors cookie value * Create AltColors variable for usage in listing * Make settings handle altColors input * Add AltColors in user struct * Returned the wrong variable here * Turn function return value into bool * Condition checks variable like a bool * ditto * better color for g.css * even better color * better * Last change for g.css * Improvement for tomorrow * Update classic.css * add alt-colors class to upload preview * Add alt-colors to user profile * more vivid color for g * Fix typo * Remove browser outline for refine when clicked on * remove browser outline * Fix rules that didn't apply and category icon being way too small on user profile thanks to usage of percentage * Remove show-xs class for search inputs * Turn refine button back into position: absolute to pin at very bottom of refine * Alternating colors for g's trusted, remake & aplus * Update tomorrow.css * attempt at fixing travis * test (will have to rollback that change) * rollback * will have to rollback * will have to rollback * will have to rollback * will have to rollback * add AltColors variable to template test * rollback * rollback * rollback * rollback
46 lignes
1,9 Kio
HTML
46 lignes
1,9 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 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>
|
|
<h3>{{ T("theme")}}</h3>
|
|
<select id="theme-selector" name="theme" class="form-input" onchange="switchThemes()">
|
|
<option value="g"{{ if Theme == "g" || Theme == "" }} selected{{end}}>/g/</option>
|
|
<option value="tomorrow"{{ if Theme == "tomorrow" }} selected{{end}}>Tomorrow</option>
|
|
<option value="classic"{{ if Theme == "classic" }} selected{{end}}>Classic</option>
|
|
</select>
|
|
</br>
|
|
<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>
|
|
<br/>
|
|
|
|
<h3>{{ T("mascot_url")}}</h3>
|
|
<input type="text" name="mascot_url" class="form-input" value="{{ MascotURL }}"/>
|
|
<br/>
|
|
|
|
<h3>Alternating Colors</h3>
|
|
<select id="altColors-selector" name="altColors" class="form-input">
|
|
<option value="false">Disabled</option>
|
|
<option value="true" {{if AltColors}}selected{{end}}>Enabled</option>
|
|
</select>
|
|
<br/>
|
|
|
|
<p>{{ T("cookies")}}</p>
|
|
<button type="submit" class="form-input btn">{{ T("save_changes")}}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{{end}}
|