feat(themes,templates,signup-gate): add signup gate, remove custom theme switcher from links footer

This commit is contained in:
hh
2026-07-22 22:18:26 +02:00
parent 9d6ff3ae8c
commit 94e452a213
23 changed files with 927 additions and 43 deletions
-14
View File
@@ -1,14 +0,0 @@
{{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="pinkie" {{if eq .SignedUser.Theme "pinkie"}}selected{{end}}>pinkie</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}}