From 6874fe90e591fa1bfb4b0575b27d876ab544e6e0 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 18 Nov 2021 04:26:50 +0100 Subject: [PATCH] Cleanup and use global style on popups (#17674) * Cleanup and use global style on popups - Fix typo 'poping' to 'popping' - Remove most inline 'data-variation' attributes - Initialize all popups with 'inverted tiny' variation * misc tweaks * rename to .tooltip, use jQuery Co-authored-by: wxiaoguang --- templates/admin/auth/list.tmpl | 4 +-- templates/admin/notice.tmpl | 2 +- templates/admin/user/edit.tmpl | 8 +++--- templates/admin/user/new.tmpl | 6 ++-- templates/base/head_navbar.tmpl | 18 ++++++------ templates/install.tmpl | 24 ++++++++-------- templates/org/team/new.tmpl | 2 +- templates/repo/blame.tmpl | 2 +- templates/repo/branch/list.tmpl | 14 +++++----- templates/repo/clone_buttons.tmpl | 2 +- templates/repo/commits_table.tmpl | 2 +- templates/repo/create.tmpl | 2 +- templates/repo/diff/box.tmpl | 6 ++-- templates/repo/diff/stats.tmpl | 2 +- templates/repo/editor/edit.tmpl | 2 +- templates/repo/editor/upload.tmpl | 2 +- templates/repo/header.tmpl | 10 +++---- templates/repo/home.tmpl | 2 +- .../view_content/comments_delete_time.tmpl | 2 +- templates/repo/issue/view_content/pull.tmpl | 8 +++--- .../repo/issue/view_content/sidebar.tmpl | 28 +++++++++---------- templates/repo/issue/view_title.tmpl | 2 +- templates/repo/projects/view.tmpl | 2 +- templates/repo/release/list.tmpl | 2 +- templates/repo/release/new.tmpl | 2 +- templates/repo/settings/collaboration.tmpl | 4 +-- templates/repo/settings/lfs.tmpl | 2 +- templates/repo/settings/lfs_locks.tmpl | 4 +-- templates/repo/settings/options.tmpl | 18 ++++++------ templates/repo/settings/webhook/history.tmpl | 4 +-- templates/repo/view_file.tmpl | 16 +++++------ templates/shared/issuelist.tmpl | 4 +-- templates/user/dashboard/repolist.tmpl | 4 +-- templates/user/profile.tmpl | 4 +-- templates/user/settings/keys_gpg.tmpl | 4 +-- templates/user/settings/profile.tmpl | 10 +++---- web_src/js/components/DashboardRepoList.js | 2 +- web_src/js/features/common-global.js | 18 ++++++++---- 38 files changed, 129 insertions(+), 121 deletions(-) diff --git a/templates/admin/auth/list.tmpl b/templates/admin/auth/list.tmpl index 35ab976022..71e5bfbda8 100644 --- a/templates/admin/auth/list.tmpl +++ b/templates/admin/auth/list.tmpl @@ -29,8 +29,8 @@ {{.Name}} {{.TypeName}} {{if .IsActive}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}} - {{.UpdatedUnix.FormatShort}} - {{.CreatedUnix.FormatShort}} + {{.UpdatedUnix.FormatShort}} + {{.CreatedUnix.FormatShort}} {{svg "octicon-pencil"}} {{end}} diff --git a/templates/admin/notice.tmpl b/templates/admin/notice.tmpl index f9cda68df4..9fec53b315 100644 --- a/templates/admin/notice.tmpl +++ b/templates/admin/notice.tmpl @@ -29,7 +29,7 @@ {{.ID}} {{$.i18n.Tr .TrStr}} {{.Description}} - {{.CreatedUnix.FormatShort}} + {{.CreatedUnix.FormatShort}} {{svg "octicon-note" 16 "view-detail"}} {{end}} diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 9475a0cce6..17bd2b936c 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -45,11 +45,11 @@ @@ -117,7 +117,7 @@
-
+
diff --git a/templates/admin/user/new.tmpl b/templates/admin/user/new.tmpl index 27ad28842a..6e3861fa50 100644 --- a/templates/admin/user/new.tmpl +++ b/templates/admin/user/new.tmpl @@ -39,11 +39,11 @@ diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 57ddbf732a..5ce1d0b888 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -1,6 +1,6 @@