mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 20:17:03 +01:00
Fixed wrong AppSubUrl in multiple templates (#10447)
* Fixed wrong AppSubUrl in OAuth2 app edit page * Replaced all other occurrences of $.AppSubURL for support of sub-paths
This commit is contained in:
parent
85e6a1267c
commit
bab6e1ed87
3 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@
|
||||||
</h3>
|
</h3>
|
||||||
<div>
|
<div>
|
||||||
{{range $term := .SearchResultLanguages}}
|
{{range $term := .SearchResultLanguages}}
|
||||||
<a class="ui {{if eq $.Language $term.Language}}primary {{end}}basic label" href="{{$.AppSubURL}}/explore/code?q={{$.Keyword}}{{if ne $.Language $term.Language}}&l={{$term.Language}}{{end}}">
|
<a class="ui {{if eq $.Language $term.Language}}primary {{end}}basic label" href="{{AppSubUrl}}/explore/code?q={{$.Keyword}}{{if ne $.Language $term.Language}}&l={{$term.Language}}{{end}}">
|
||||||
<i class="color-icon" style="background-color: {{$term.Color}}"></i>
|
<i class="color-icon" style="background-color: {{$term.Color}}"></i>
|
||||||
{{$term.Language}}
|
{{$term.Language}}
|
||||||
<div class="detail">{{$term.Count}}</div>
|
<div class="detail">{{$term.Count}}</div>
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{{$.AppSubUrl}}/{{$lock.Owner.Name}}">
|
<a href="{{AppSubUrl}}/{{$lock.Owner.Name}}">
|
||||||
<img class="ui avatar image" src="{{$lock.Owner.RelAvatarLink}}">
|
<img class="ui avatar image" src="{{$lock.Owner.RelAvatarLink}}">
|
||||||
{{$lock.Owner.DisplayName}}
|
{{$lock.Owner.DisplayName}}
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -30,14 +30,14 @@
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<!-- TODO add regenerate secret functionality */ -->
|
<!-- TODO add regenerate secret functionality */ -->
|
||||||
{{.i18n.Tr "settings.oauth2_regenerate_secret_hint"}}
|
{{.i18n.Tr "settings.oauth2_regenerate_secret_hint"}}
|
||||||
<form class="ui form ignore-dirty" action="{{$.AppSubURL}}/user/settings/applications/oauth2/{{.App.ID}}/regenerate_secret" method="post">
|
<form class="ui form ignore-dirty" action="{{AppSubUrl}}/user/settings/applications/oauth2/{{.App.ID}}/regenerate_secret" method="post">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<a href="#" onclick="event.target.parentNode.submit()">{{.i18n.Tr "settings.oauth2_regenerate_secret"}}</a>
|
<a href="#" onclick="event.target.parentNode.submit()">{{.i18n.Tr "settings.oauth2_regenerate_secret"}}</a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui attached bottom segment">
|
<div class="ui attached bottom segment">
|
||||||
<form class="ui form ignore-dirty" action="{{$.AppSubURL}}/user/settings/applications/oauth2/{{.App.ID}}" method="post">
|
<form class="ui form ignore-dirty" action="{{AppSubUrl}}/user/settings/applications/oauth2/{{.App.ID}}" method="post">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<div class="field {{if .Err_AppName}}error{{end}}">
|
<div class="field {{if .Err_AppName}}error{{end}}">
|
||||||
<label for="application-name">{{.i18n.Tr "settings.oauth2_application_name"}}</label>
|
<label for="application-name">{{.i18n.Tr "settings.oauth2_application_name"}}</label>
|
||||||
|
|
Loading…
Reference in a new issue