diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2024-10-10 12:56:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-10 04:56:49 +0000 |
commit | c2217670dd7514e17fc9c1f17d7e459b842ea798 (patch) | |
tree | 01042a8c4ff3d5352cb028b70b78eddf4f0d7814 /templates/admin | |
parent | dd83cfcacc989d0e7cbd21ec5eba029fdfcb72dd (diff) | |
download | gitea-c2217670dd7514e17fc9c1f17d7e459b842ea798.tar.gz gitea-c2217670dd7514e17fc9c1f17d7e459b842ea798.zip |
Move admin routers from /admin to /-/admin (#32189)
Resolve #32181
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/auth/list.tmpl | 6 | ||||
-rw-r--r-- | templates/admin/config.tmpl | 4 | ||||
-rw-r--r-- | templates/admin/config_settings.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/cron.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/dashboard.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/emails/list.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/navbar.tmpl | 42 | ||||
-rw-r--r-- | templates/admin/notice.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/packages/list.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/repo/list.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/repo/unadopted.tmpl | 6 | ||||
-rw-r--r-- | templates/admin/stacktrace.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/user/list.tmpl | 2 |
13 files changed, 38 insertions, 38 deletions
diff --git a/templates/admin/auth/list.tmpl b/templates/admin/auth/list.tmpl index 174dda1e2a..7057169895 100644 --- a/templates/admin/auth/list.tmpl +++ b/templates/admin/auth/list.tmpl @@ -3,7 +3,7 @@ <h4 class="ui top attached header"> {{ctx.Locale.Tr "admin.auths.auth_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}}) <div class="ui right"> - <a class="ui primary tiny button" href="{{AppSubUrl}}/admin/auths/new">{{ctx.Locale.Tr "admin.auths.new"}}</a> + <a class="ui primary tiny button" href="{{AppSubUrl}}/-/admin/auths/new">{{ctx.Locale.Tr "admin.auths.new"}}</a> </div> </h4> <div class="ui attached table segment"> @@ -23,12 +23,12 @@ {{range .Sources}} <tr> <td>{{.ID}}</td> - <td><a href="{{AppSubUrl}}/admin/auths/{{.ID}}">{{.Name}}</a></td> + <td><a href="{{AppSubUrl}}/-/admin/auths/{{.ID}}">{{.Name}}</a></td> <td>{{.TypeName}}</td> <td>{{svg (Iif .IsActive "octicon-check" "octicon-x")}}</td> <td>{{DateTime "short" .UpdatedUnix}}</td> <td>{{DateTime "short" .CreatedUnix}}</td> - <td><a href="{{AppSubUrl}}/admin/auths/{{.ID}}">{{svg "octicon-pencil"}}</a></td> + <td><a href="{{AppSubUrl}}/-/admin/auths/{{.ID}}">{{svg "octicon-pencil"}}</a></td> </tr> {{end}} </tbody> diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 87f18192a6..29a5e1b473 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -231,7 +231,7 @@ <div class="divider"></div> <dt class="tw-py-1 tw-flex tw-items-center">{{ctx.Locale.Tr "admin.config.send_test_mail"}}</dt> <dd class="tw-py-0"> - <form class="ui form ignore-dirty" action="{{AppSubUrl}}/admin/config/test_mail" method="post"> + <form class="ui form ignore-dirty" action="{{AppSubUrl}}/-/admin/config/test_mail" method="post"> {{.CsrfTokenHtml}} <div class="ui tiny input"> <input type="email" name="email" placeholder="{{ctx.Locale.Tr "admin.config.test_email_placeholder"}}" size="29" required> @@ -263,7 +263,7 @@ <div class="divider"></div> <dt class="tw-py-1 tw-flex tw-items-center">{{ctx.Locale.Tr "admin.config.cache_test"}}</dt> <dd class="tw-py-0"> - <form class="ui form ignore-dirty" action="{{AppSubUrl}}/admin/config/test_cache" method="post"> + <form class="ui form ignore-dirty" action="{{AppSubUrl}}/-/admin/config/test_cache" method="post"> {{.CsrfTokenHtml}} <button class="ui tiny primary button">{{ctx.Locale.Tr "test"}}</button> </form> diff --git a/templates/admin/config_settings.tmpl b/templates/admin/config_settings.tmpl index 02ab5fd0fb..6b9bb8275c 100644 --- a/templates/admin/config_settings.tmpl +++ b/templates/admin/config_settings.tmpl @@ -24,7 +24,7 @@ {{ctx.Locale.Tr "repository"}} </h4> <div class="ui attached segment"> - <form class="ui form form-fetch-action" method="post" action="{{AppSubUrl}}/admin/config?key={{.SystemConfig.Repository.OpenWithEditorApps.DynKey}}"> + <form class="ui form form-fetch-action" method="post" action="{{AppSubUrl}}/-/admin/config?key={{.SystemConfig.Repository.OpenWithEditorApps.DynKey}}"> <div class="field"> <details> <summary>{{ctx.Locale.Tr "admin.config.open_with_editor_app_help"}}</summary> diff --git a/templates/admin/cron.tmpl b/templates/admin/cron.tmpl index bb412ef146..1c16ed00ae 100644 --- a/templates/admin/cron.tmpl +++ b/templates/admin/cron.tmpl @@ -4,7 +4,7 @@ {{ctx.Locale.Tr "admin.monitor.cron"}} </h4> <div class="ui attached table segment"> - <form method="post" action="{{AppSubUrl}}/admin"> + <form method="post" action="{{AppSubUrl}}/-/admin"> <table class="ui very basic striped table unstackable tw-mb-0"> <thead> <tr> diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index b82922df0c..af2349d288 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -9,7 +9,7 @@ {{ctx.Locale.Tr "admin.dashboard.maintenance_operations"}} </h4> <div class="ui attached table segment"> - <form method="post" action="{{AppSubUrl}}/admin"> + <form method="post" action="{{AppSubUrl}}/-/admin"> {{.CsrfTokenHtml}} <table class="ui very basic table tw-mt-0 tw-px-4"> <tbody> diff --git a/templates/admin/emails/list.tmpl b/templates/admin/emails/list.tmpl index 93fbb9dfc2..835b77ea17 100644 --- a/templates/admin/emails/list.tmpl +++ b/templates/admin/emails/list.tmpl @@ -80,7 +80,7 @@ <div class="content"> <p class="center">{{ctx.Locale.Tr "admin.emails.change_email_text"}}</p> - <form class="ui form" id="email-action-form" action="{{AppSubUrl}}/admin/emails/activate" method="post"> + <form class="ui form" id="email-action-form" action="{{AppSubUrl}}/-/admin/emails/activate" method="post"> {{$.CsrfTokenHtml}} <input type="hidden" id="query-sort" name="sort" value="{{.SortType}}"> diff --git a/templates/admin/navbar.tmpl b/templates/admin/navbar.tmpl index 1b3b9d6efc..4116357d1d 100644 --- a/templates/admin/navbar.tmpl +++ b/templates/admin/navbar.tmpl @@ -5,10 +5,10 @@ <details class="item toggleable-item" {{if or .PageIsAdminDashboard .PageIsAdminSelfCheck}}open{{end}}> <summary>{{ctx.Locale.Tr "admin.maintenance"}}</summary> <div class="menu"> - <a class="{{if .PageIsAdminDashboard}}active {{end}}item" href="{{AppSubUrl}}/admin"> + <a class="{{if .PageIsAdminDashboard}}active {{end}}item" href="{{AppSubUrl}}/-/admin"> {{ctx.Locale.Tr "admin.dashboard"}} </a> - <a class="{{if .PageIsAdminSelfCheck}}active {{end}}item" href="{{AppSubUrl}}/admin/self_check"> + <a class="{{if .PageIsAdminSelfCheck}}active {{end}}item" href="{{AppSubUrl}}/-/admin/self_check"> {{ctx.Locale.Tr "admin.self_check"}} </a> </div> @@ -16,16 +16,16 @@ <details class="item toggleable-item" {{if or .PageIsAdminUsers .PageIsAdminEmails .PageIsAdminOrganizations .PageIsAdminAuthentications}}open{{end}}> <summary>{{ctx.Locale.Tr "admin.identity_access"}}</summary> <div class="menu"> - <a class="{{if .PageIsAdminAuthentications}}active {{end}}item" href="{{AppSubUrl}}/admin/auths"> + <a class="{{if .PageIsAdminAuthentications}}active {{end}}item" href="{{AppSubUrl}}/-/admin/auths"> {{ctx.Locale.Tr "admin.authentication"}} </a> - <a class="{{if .PageIsAdminOrganizations}}active {{end}}item" href="{{AppSubUrl}}/admin/orgs"> + <a class="{{if .PageIsAdminOrganizations}}active {{end}}item" href="{{AppSubUrl}}/-/admin/orgs"> {{ctx.Locale.Tr "admin.organizations"}} </a> - <a class="{{if .PageIsAdminUsers}}active {{end}}item" href="{{AppSubUrl}}/admin/users"> + <a class="{{if .PageIsAdminUsers}}active {{end}}item" href="{{AppSubUrl}}/-/admin/users"> {{ctx.Locale.Tr "admin.users"}} </a> - <a class="{{if .PageIsAdminEmails}}active {{end}}item" href="{{AppSubUrl}}/admin/emails"> + <a class="{{if .PageIsAdminEmails}}active {{end}}item" href="{{AppSubUrl}}/-/admin/emails"> {{ctx.Locale.Tr "admin.emails"}} </a> </div> @@ -34,11 +34,11 @@ <summary>{{ctx.Locale.Tr "admin.assets"}}</summary> <div class="menu"> {{if .EnablePackages}} - <a class="{{if .PageIsAdminPackages}}active {{end}}item" href="{{AppSubUrl}}/admin/packages"> + <a class="{{if .PageIsAdminPackages}}active {{end}}item" href="{{AppSubUrl}}/-/admin/packages"> {{ctx.Locale.Tr "packages.title"}} </a> {{end}} - <a class="{{if .PageIsAdminRepositories}}active {{end}}item" href="{{AppSubUrl}}/admin/repos"> + <a class="{{if .PageIsAdminRepositories}}active {{end}}item" href="{{AppSubUrl}}/-/admin/repos"> {{ctx.Locale.Tr "admin.repositories"}} </a> </div> @@ -48,22 +48,22 @@ <details class="item toggleable-item" {{if or .PageIsAdminDefaultHooks .PageIsAdminSystemHooks .PageIsAdminApplications}}open{{end}}> <summary>{{ctx.Locale.Tr "admin.integrations"}}</summary> <div class="menu"> - <a class="{{if .PageIsAdminApplications}}active {{end}}item" href="{{AppSubUrl}}/admin/applications"> + <a class="{{if .PageIsAdminApplications}}active {{end}}item" href="{{AppSubUrl}}/-/admin/applications"> {{ctx.Locale.Tr "settings.applications"}} </a> - <a class="{{if or .PageIsAdminDefaultHooks .PageIsAdminSystemHooks}}active {{end}}item" href="{{AppSubUrl}}/admin/hooks"> + <a class="{{if or .PageIsAdminDefaultHooks .PageIsAdminSystemHooks}}active {{end}}item" href="{{AppSubUrl}}/-/admin/hooks"> {{ctx.Locale.Tr "admin.hooks"}} </a> </div> </details> {{else}} {{if not DisableWebhooks}} - <a class="{{if or .PageIsAdminDefaultHooks .PageIsAdminSystemHooks}}active {{end}}item" href="{{AppSubUrl}}/admin/hooks"> + <a class="{{if or .PageIsAdminDefaultHooks .PageIsAdminSystemHooks}}active {{end}}item" href="{{AppSubUrl}}/-/admin/hooks"> {{ctx.Locale.Tr "admin.hooks"}} </a> {{end}} {{if .EnableOAuth2}} - <a class="{{if .PageIsAdminApplications}}active {{end}}item" href="{{AppSubUrl}}/admin/applications"> + <a class="{{if .PageIsAdminApplications}}active {{end}}item" href="{{AppSubUrl}}/-/admin/applications"> {{ctx.Locale.Tr "settings.applications"}} </a> {{end}} @@ -72,10 +72,10 @@ <details class="item toggleable-item" {{if or .PageIsSharedSettingsRunners .PageIsSharedSettingsVariables}}open{{end}}> <summary>{{ctx.Locale.Tr "actions.actions"}}</summary> <div class="menu"> - <a class="{{if .PageIsSharedSettingsRunners}}active {{end}}item" href="{{AppSubUrl}}/admin/actions/runners"> + <a class="{{if .PageIsSharedSettingsRunners}}active {{end}}item" href="{{AppSubUrl}}/-/admin/actions/runners"> {{ctx.Locale.Tr "actions.runners"}} </a> - <a class="{{if .PageIsSharedSettingsVariables}}active {{end}}item" href="{{AppSubUrl}}/admin/actions/variables"> + <a class="{{if .PageIsSharedSettingsVariables}}active {{end}}item" href="{{AppSubUrl}}/-/admin/actions/variables"> {{ctx.Locale.Tr "actions.variables"}} </a> </div> @@ -84,30 +84,30 @@ <details class="item toggleable-item" {{if or .PageIsAdminConfig}}open{{end}}> <summary>{{ctx.Locale.Tr "admin.config"}}</summary> <div class="menu"> - <a class="{{if .PageIsAdminConfigSummary}}active {{end}}item" href="{{AppSubUrl}}/admin/config"> + <a class="{{if .PageIsAdminConfigSummary}}active {{end}}item" href="{{AppSubUrl}}/-/admin/config"> {{ctx.Locale.Tr "admin.config_summary"}} </a> - <a class="{{if .PageIsAdminConfigSettings}}active {{end}}item" href="{{AppSubUrl}}/admin/config/settings"> + <a class="{{if .PageIsAdminConfigSettings}}active {{end}}item" href="{{AppSubUrl}}/-/admin/config/settings"> {{ctx.Locale.Tr "admin.config_settings"}} </a> </div> </details> - <a class="{{if .PageIsAdminNotices}}active {{end}}item" href="{{AppSubUrl}}/admin/notices"> + <a class="{{if .PageIsAdminNotices}}active {{end}}item" href="{{AppSubUrl}}/-/admin/notices"> {{ctx.Locale.Tr "admin.notices"}} </a> <details class="item toggleable-item" {{if or .PageIsAdminMonitorStats .PageIsAdminMonitorCron .PageIsAdminMonitorQueue .PageIsAdminMonitorStacktrace}}open{{end}}> <summary>{{ctx.Locale.Tr "admin.monitor"}}</summary> <div class="menu"> - <a class="{{if .PageIsAdminMonitorStats}}active {{end}}item" href="{{AppSubUrl}}/admin/monitor/stats"> + <a class="{{if .PageIsAdminMonitorStats}}active {{end}}item" href="{{AppSubUrl}}/-/admin/monitor/stats"> {{ctx.Locale.Tr "admin.monitor.stats"}} </a> - <a class="{{if .PageIsAdminMonitorCron}}active {{end}}item" href="{{AppSubUrl}}/admin/monitor/cron"> + <a class="{{if .PageIsAdminMonitorCron}}active {{end}}item" href="{{AppSubUrl}}/-/admin/monitor/cron"> {{ctx.Locale.Tr "admin.monitor.cron"}} </a> - <a class="{{if .PageIsAdminMonitorQueue}}active {{end}}item" href="{{AppSubUrl}}/admin/monitor/queue"> + <a class="{{if .PageIsAdminMonitorQueue}}active {{end}}item" href="{{AppSubUrl}}/-/admin/monitor/queue"> {{ctx.Locale.Tr "admin.monitor.queues"}} </a> - <a class="{{if .PageIsAdminMonitorStacktrace}}active {{end}}item" href="{{AppSubUrl}}/admin/monitor/stacktrace"> + <a class="{{if .PageIsAdminMonitorStacktrace}}active {{end}}item" href="{{AppSubUrl}}/-/admin/monitor/stacktrace"> {{ctx.Locale.Tr "admin.monitor.stacktrace"}} </a> </div> diff --git a/templates/admin/notice.tmpl b/templates/admin/notice.tmpl index 68703cc884..6e7eed7678 100644 --- a/templates/admin/notice.tmpl +++ b/templates/admin/notice.tmpl @@ -31,7 +31,7 @@ <tr> <th></th> <th colspan="5"> - <form class="tw-float-right" method="post" action="{{AppSubUrl}}/admin/notices/empty"> + <form class="tw-float-right" method="post" action="{{AppSubUrl}}/-/admin/notices/empty"> {{.CsrfTokenHtml}} <button type="submit" class="ui red small button">{{ctx.Locale.Tr "admin.notices.delete_all"}}</button> </form> diff --git a/templates/admin/packages/list.tmpl b/templates/admin/packages/list.tmpl index d1d77b6220..a5ad93b89c 100644 --- a/templates/admin/packages/list.tmpl +++ b/templates/admin/packages/list.tmpl @@ -5,7 +5,7 @@ {{ctx.Locale.Tr "admin.packages.total_size" (FileSize .TotalBlobSize)}}, {{ctx.Locale.Tr "admin.packages.unreferenced_size" (FileSize .TotalUnreferencedBlobSize)}}) <div class="ui right"> - <form method="post" action="{{AppSubUrl}}/admin/packages/cleanup"> + <form method="post" action="{{AppSubUrl}}/-/admin/packages/cleanup"> {{.CsrfTokenHtml}} <button class="ui primary tiny button">{{ctx.Locale.Tr "admin.packages.cleanup"}}</button> </form> diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index 69031e42eb..77a275427a 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -3,7 +3,7 @@ <h4 class="ui top attached header"> {{ctx.Locale.Tr "admin.repos.repo_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}}) <div class="ui right"> - <a class="ui primary tiny button" href="{{AppSubUrl}}/admin/repos/unadopted">{{ctx.Locale.Tr "admin.repos.unadopted"}}</a> + <a class="ui primary tiny button" href="{{AppSubUrl}}/-/admin/repos/unadopted">{{ctx.Locale.Tr "admin.repos.unadopted"}}</a> </div> </h4> <div class="ui attached segment"> diff --git a/templates/admin/repo/unadopted.tmpl b/templates/admin/repo/unadopted.tmpl index a95f6b5120..6f26fa5291 100644 --- a/templates/admin/repo/unadopted.tmpl +++ b/templates/admin/repo/unadopted.tmpl @@ -3,7 +3,7 @@ <h4 class="ui top attached header"> {{ctx.Locale.Tr "admin.repos.unadopted"}} <div class="ui right"> - <a class="ui primary tiny button" href="{{AppSubUrl}}/admin/repos">{{ctx.Locale.Tr "admin.repos.repo_manage_panel"}}</a> + <a class="ui primary tiny button" href="{{AppSubUrl}}/-/admin/repos">{{ctx.Locale.Tr "admin.repos.repo_manage_panel"}}</a> </div> </h4> <div class="ui attached segment"> @@ -31,7 +31,7 @@ <div class="content"> <p>{{ctx.Locale.Tr "repo.adopt_preexisting_content" $dir}}</p> </div> - <form class="ui form" method="post" action="{{AppSubUrl}}/admin/repos/unadopted"> + <form class="ui form" method="post" action="{{AppSubUrl}}/-/admin/repos/unadopted"> {{$.CsrfTokenHtml}} <input type="hidden" name="id" value="{{$dir}}"> <input type="hidden" name="action" value="adopt"> @@ -48,7 +48,7 @@ <div class="content"> <p>{{ctx.Locale.Tr "repo.delete_preexisting_content" $dir}}</p> </div> - <form class="ui form" method="post" action="{{AppSubUrl}}/admin/repos/unadopted"> + <form class="ui form" method="post" action="{{AppSubUrl}}/-/admin/repos/unadopted"> {{$.CsrfTokenHtml}} <input type="hidden" name="id" value="{{$dir}}"> <input type="hidden" name="action" value="delete"> diff --git a/templates/admin/stacktrace.tmpl b/templates/admin/stacktrace.tmpl index e324570c96..ce03d80555 100644 --- a/templates/admin/stacktrace.tmpl +++ b/templates/admin/stacktrace.tmpl @@ -8,7 +8,7 @@ <a class="{{if eq .ShowGoroutineList "stacktrace"}}active {{end}}item" href="?show=stacktrace">{{ctx.Locale.Tr "admin.monitor.stacktrace"}}</a> </div> </div> - <form target="_blank" action="{{AppSubUrl}}/admin/monitor/diagnosis" class="ui form"> + <form target="_blank" action="{{AppSubUrl}}/-/admin/monitor/diagnosis" class="ui form"> <div class="ui inline field"> <button class="ui primary small button">{{ctx.Locale.Tr "admin.monitor.download_diagnosis_report"}}</button> <input name="seconds" size="3" maxlength="3" value="10"> {{ctx.Locale.Tr "tool.raw_seconds"}} diff --git a/templates/admin/user/list.tmpl b/templates/admin/user/list.tmpl index bc54d33431..bc3d83fc5c 100644 --- a/templates/admin/user/list.tmpl +++ b/templates/admin/user/list.tmpl @@ -3,7 +3,7 @@ <h4 class="ui top attached header"> {{ctx.Locale.Tr "admin.users.user_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}}) <div class="ui right"> - <a class="ui primary tiny button" href="{{AppSubUrl}}/admin/users/new">{{ctx.Locale.Tr "admin.users.new_account"}}</a> + <a class="ui primary tiny button" href="{{AppSubUrl}}/-/admin/users/new">{{ctx.Locale.Tr "admin.users.new_account"}}</a> </div> </h4> <div class="ui attached segment"> |