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/devtest-list.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/devtest-list.tmpl')
-rw-r--r-- | templates/devtest/devtest-list.tmpl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/devtest/devtest-list.tmpl b/templates/devtest/devtest-list.tmpl new file mode 100644 index 0000000000..71ee6807f0 --- /dev/null +++ b/templates/devtest/devtest-list.tmpl @@ -0,0 +1,13 @@ +{{template "devtest/devtest-header"}} +<ul> + {{range .SubNames}} + <li><a href="{{AppSubUrl}}/devtest/{{.}}">{{.}}</a></li> + {{end}} +</ul> + +<style> +ul { + line-height: 2em; +} +</style> +{{template "devtest/devtest-footer"}} |