diff options
author | KN4CK3R <KN4CK3R@users.noreply.github.com> | 2021-04-14 21:43:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 20:43:17 +0100 |
commit | cf8f66e5dcebc07fd1975806e94b69ad557a13ed (patch) | |
tree | ddaca8efd717a6277c27135f2d4d401b12e21598 /templates | |
parent | 1426601cf7dd6e2cefca218a84d38905dc1cb295 (diff) | |
download | gitea-cf8f66e5dcebc07fd1975806e94b69ad557a13ed.tar.gz gitea-cf8f66e5dcebc07fd1975806e94b69ad557a13ed.zip |
Use subdir for URL (#15446)
Fixes #15444
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/create.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/labels/label_list.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/activate.tmpl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 4aabcb6bb3..3b76e0ace6 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -10,7 +10,7 @@ <div class="ui attached segment"> {{template "base/alert" .}} - <p class="ui center">{{.i18n.Tr "repo.new_repo_helper" "/repo/migrate" | Safe}}</p> + <p class="ui center">{{.i18n.Tr "repo.new_repo_helper" (printf "%s%s" AppSubUrl "/repo/migrate") | Safe}}</p> {{if not .CanCreateRepo}} <div class="ui negative message"> diff --git a/templates/repo/issue/labels/label_list.tmpl b/templates/repo/issue/labels/label_list.tmpl index 4faec9a5ab..cbca86d6ca 100644 --- a/templates/repo/issue/labels/label_list.tmpl +++ b/templates/repo/issue/labels/label_list.tmpl @@ -40,7 +40,7 @@ </div> <div class="three wide column"> {{if $.PageIsOrgSettingsLabels}} - <a class="ui right open-issues" href="/issues?labels={{.ID}}">{{svg "octicon-issue-opened"}} {{$.i18n.Tr "repo.issues.label_open_issues" .NumOpenIssues}}</a> + <a class="ui right open-issues" href="{{AppSubUrl}}/issues?labels={{.ID}}">{{svg "octicon-issue-opened"}} {{$.i18n.Tr "repo.issues.label_open_issues" .NumOpenIssues}}</a> {{else}} <a class="ui right open-issues" href="{{$.RepoLink}}/issues?labels={{.ID}}">{{svg "octicon-issue-opened"}} {{$.i18n.Tr "repo.issues.label_open_issues" .NumOpenIssues}}</a> {{end}} diff --git a/templates/user/auth/activate.tmpl b/templates/user/auth/activate.tmpl index 7f9021ae4f..cc6f52b571 100644 --- a/templates/user/auth/activate.tmpl +++ b/templates/user/auth/activate.tmpl @@ -19,7 +19,7 @@ {{end}} {{else}} {{if .NeedsPassword}} - <form class="ui form" action="/user/activate" method="post"> + <form class="ui form" action="{{AppSubUrl}}/user/activate" method="post"> <div class="required inline field"> <label for="password">{{.i18n.Tr "password"}}</label> <input id="password" name="password" type="password" autocomplete="off" required> |