diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-11-26 23:36:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-26 15:36:55 +0000 |
commit | 0f4b0cf8922ef1016fc8230fb0f9df883f03d1e0 (patch) | |
tree | ad2286fea93974d4afcda60e913f7b3199fbd433 /templates/devtest/label.tmpl | |
parent | 722e703c6bc4df27f23a985b16f68e6c89e048c1 (diff) | |
download | gitea-0f4b0cf8922ef1016fc8230fb0f9df883f03d1e0.tar.gz gitea-0f4b0cf8922ef1016fc8230fb0f9df883f03d1e0.zip |
Refactor some frontend problems (#32646)
1. correct the modal usage on "admin email list" page (then
`web_src/js/features/admin/emails.ts` is removed)
2. use `addDelegatedEventListener` instead of `jQuery().on`
3. more jQuery related changes and remove jQuery from
`web_src/js/features/common-button.ts`
4. improve `confirmModal` to make it support header, and remove
incorrect double-escaping
5. fix more typescript related types
6. fine tune devtest pages and add more tests
Diffstat (limited to 'templates/devtest/label.tmpl')
-rw-r--r-- | templates/devtest/label.tmpl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/templates/devtest/label.tmpl b/templates/devtest/label.tmpl index c4b52a3e23..6c48f0c504 100644 --- a/templates/devtest/label.tmpl +++ b/templates/devtest/label.tmpl @@ -1,5 +1,4 @@ -{{template "base/head" .}} -<link rel="stylesheet" href="{{AssetUrlPrefix}}/css/devtest.css?v={{AssetVersion}}"> +{{template "devtest/devtest-header"}} <div class="page-content devtest ui container"> <div> <h1>Label</h1> @@ -24,4 +23,4 @@ </div> </div> </div> -{{template "base/footer" .}} +{{template "devtest/devtest-footer"}} |