Added cyborg option to settings page
This commit is contained in:
parent
79ad0d6fb8
commit
32f55c65e9
2 changed files with 5 additions and 4 deletions
|
@ -122,10 +122,7 @@ def user_settings():
|
||||||
'gender': request.form['gender'],
|
'gender': request.form['gender'],
|
||||||
'location': request.form['location']
|
'location': request.form['location']
|
||||||
}
|
}
|
||||||
if request.form['theme'] == "darkly":
|
accounts.set_theme(session['username'].lower(), request.form['theme'])
|
||||||
accounts.set_theme(session['username'].lower(), "darkly")
|
|
||||||
elif request.form['theme'] == "default":
|
|
||||||
accounts.set_theme(session['username'].lower(), "default")
|
|
||||||
username = session['username']
|
username = session['username']
|
||||||
accounts.update_profile(username, profile)
|
accounts.update_profile(username, profile)
|
||||||
return redirect(url_for('profile'))
|
return redirect(url_for('profile'))
|
||||||
|
|
|
@ -38,6 +38,10 @@
|
||||||
<input type="radio" id="customRadioInline2" name="theme" value="darkly" class="custom-control-input" {% if theme=="darkly" %}checked{% endif %}>
|
<input type="radio" id="customRadioInline2" name="theme" value="darkly" class="custom-control-input" {% if theme=="darkly" %}checked{% endif %}>
|
||||||
<label class="custom-control-label" for="customRadioInline2">Darkly</label>
|
<label class="custom-control-label" for="customRadioInline2">Darkly</label>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="custom-control custom-radio custom-control-inline">
|
||||||
|
<input type="radio" id="customRadioInline3" name="theme" value="cyborg" class="custom-control-input" {% if theme=="cyborg" %}checked{% endif %}>
|
||||||
|
<label class="custom-control-label" for="customRadioInline3">Cyborg</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="submit" class="btn btn-primary">Save</button>
|
<button type="submit" class="btn btn-primary">Save</button>
|
||||||
|
|
Loading…
Add table
Reference in a new issue