feat(themes): add neogothic theme, add theme switcher to footer
This commit is contained in:
13
templates/custom/extra_links_footer.tmpl
Normal file
13
templates/custom/extra_links_footer.tmpl
Normal file
@@ -0,0 +1,13 @@
|
||||
{{if .IsSigned}}
|
||||
<div class="item theme-selector-footer" style="margin-left: 15px;">
|
||||
<form class="ui form" action="{{AppSubUrl}}/user/settings/appearance/theme" method="post">
|
||||
<input type="hidden" name="_csrf" value="{{.CsrfToken}}">
|
||||
<select name="theme" id="footer-theme-select" class="ui dropdown">
|
||||
<option value="neogothic" {{if eq .SignedUser.Theme "neogothic"}}selected{{end}}>neogothic</option>
|
||||
<option value="gitea-dark" {{if eq .SignedUser.Theme "gitea-dark"}}selected{{end}}>gitea-dark</option>
|
||||
<option value="gitea-light" {{if eq .SignedUser.Theme "gitea-light"}}selected{{end}}>gitea-light</option>
|
||||
</select>
|
||||
<button type="submit" class="ui mini basic button">OK</button>
|
||||
</form>
|
||||
</div>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user