Fix some URLs whose sub-path is missing (#31289)
Fix #31285 (cherry picked from commit 0188d82e4908eb173f7203d577f801f3168ffcb8) Conflicts: templates/user/settings/applications.tmpl
This commit is contained in:
parent
eaa2fef868
commit
457fb013ef
|
@ -5,7 +5,7 @@
|
||||||
{{ctx.Locale.Tr "admin.packages.total_size" (ctx.Locale.TrSize .TotalBlobSize)}},
|
{{ctx.Locale.Tr "admin.packages.total_size" (ctx.Locale.TrSize .TotalBlobSize)}},
|
||||||
{{ctx.Locale.Tr "admin.packages.unreferenced_size" (ctx.Locale.TrSize .TotalUnreferencedBlobSize)}})
|
{{ctx.Locale.Tr "admin.packages.unreferenced_size" (ctx.Locale.TrSize .TotalUnreferencedBlobSize)}})
|
||||||
<div class="ui right">
|
<div class="ui right">
|
||||||
<form method="post" action="/admin/packages/cleanup">
|
<form method="post" action="{{AppSubUrl}}/admin/packages/cleanup">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<button class="ui primary tiny button">{{ctx.Locale.Tr "admin.packages.cleanup"}}</button>
|
<button class="ui primary tiny button">{{ctx.Locale.Tr "admin.packages.cleanup"}}</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<div><label><input name="check" type="checkbox"> check</label></div>
|
<div><label><input name="check" type="checkbox"> check</label></div>
|
||||||
<div><button name="btn">submit post</button></div>
|
<div><button name="btn">submit post</button></div>
|
||||||
</form>
|
</form>
|
||||||
<form method="post" action="/no-such-uri" class="form-fetch-action">
|
<form method="post" action="no-such-uri" class="form-fetch-action">
|
||||||
<div class="tw-py-8">bad action url</div>
|
<div class="tw-py-8">bad action url</div>
|
||||||
<div><button name="btn">submit test</button></div>
|
<div><button name="btn">submit test</button></div>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -75,7 +75,7 @@
|
||||||
{{ctx.Locale.Tr "settings.select_permissions"}}
|
{{ctx.Locale.Tr "settings.select_permissions"}}
|
||||||
</summary>
|
</summary>
|
||||||
<p class="activity meta">
|
<p class="activity meta">
|
||||||
<p>{{ctx.Locale.Tr "settings.access_token_desc" (`href="/api/swagger" target="_blank"`|SafeHTML) (`href="https://forgejo.org/docs/latest/user/token-scope/" target="_blank"`|SafeHTML)}}</p>
|
<p>{{ctx.Locale.Tr "settings.access_token_desc" (HTMLFormat `href="%s/api/swagger" target="_blank"` AppSubUrl) (`href="https://forgejo.org/docs/latest/user/token-scope/" target="_blank"`|SafeHTML)}}</p>
|
||||||
</p>
|
</p>
|
||||||
<div class="scoped-access-token-mount">
|
<div class="scoped-access-token-mount">
|
||||||
<scoped-access-token-selector
|
<scoped-access-token-selector
|
||||||
|
|
Loading…
Reference in New Issue