Add theme warning with hardcoded link

Signed-off-by: Minecon724 <minecon724@noreply.git.m724.eu>
This commit is contained in:
Minecon724 2025-03-17 09:55:13 +01:00
parent b6bf04ceb4
commit bbfc7ccb10
Signed by: Minecon724
GPG key ID: A02E6E67AB961189
2 changed files with 4 additions and 3 deletions

View file

@ -829,6 +829,7 @@ manage_themes = Default theme
manage_openid = OpenID addresses manage_openid = OpenID addresses
email_desc = Your primary email address will be used for notifications, password recovery and, provided that it is not hidden, web-based Git operations. email_desc = Your primary email address will be used for notifications, password recovery and, provided that it is not hidden, web-based Git operations.
theme_desc = This theme will be used for the web interface when you are logged in. theme_desc = This theme will be used for the web interface when you are logged in.
theme_warning = <strong>WARNING:</strong> Themes are made by third parties. <a href="/git724/git724/src/branch/master/THEMES.md">Click to read more.</a>
primary = Primary primary = Primary
activated = Activated activated = Activated
requires_activation = Requires activation requires_activation = Requires activation

View file

@ -7,14 +7,14 @@
</h4> </h4>
<div class="ui attached segment"> <div class="ui attached segment">
<div class="ui email list"> <div class="ui email list">
<div class="item"> <div class="item tw-mb-4">
{{ctx.Locale.Tr "settings.theme_desc"}} <p>{{ctx.Locale.Tr "settings.theme_desc"}}</p>
<p>{{ctx.Locale.Tr "settings.theme_warning"}}</p>
</div> </div>
<form class="ui form" action="{{.Link}}/theme" method="post"> <form class="ui form" action="{{.Link}}/theme" method="post">
{{.CsrfTokenHtml}} {{.CsrfTokenHtml}}
<div class="field"> <div class="field">
<label for="ui">{{ctx.Locale.Tr "settings.ui"}}</label>
<div class="ui search selection dropdown" id="ui"> <div class="ui search selection dropdown" id="ui">
<input name="theme" type="hidden" value="{{.SignedUser.Theme}}"> <input name="theme" type="hidden" value="{{.SignedUser.Theme}}">
{{svg "octicon-triangle-down" 14 "dropdown icon"}} {{svg "octicon-triangle-down" 14 "dropdown icon"}}