From 6874fe90e591fa1bfb4b0575b27d876ab544e6e0 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 18 Nov 2021 04:26:50 +0100 Subject: 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/repo/issue/view_content/sidebar.tmpl | 28 +++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'templates/repo/issue/view_content/sidebar.tmpl') diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index a72a9216a5..6198b6a621 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -23,7 +23,7 @@ {{if .Reviewers}} {{range .Reviewers}} {{if .User}} - + {{svg "octicon-check"}} {{avatar .User 28 "mr-3"}} @@ -37,7 +37,7 @@
{{range .TeamReviewers}} {{if .Team}} -
+ {{svg "octicon-check" 16}} {{svg "octicon-people" 16 "ml-4 mr-2"}}{{$.Issue.Repo.OwnerName}}/{{.Team.Name}} @@ -69,7 +69,7 @@ {{- else}}grey{{end}} right "> {{if .CanChange}} - + {{if .Checked}} {{svg "octicon-trash"}} {{else}} {{svg "octicon-sync"}} {{end}} {{end}} @@ -79,7 +79,7 @@ {{end}} {{range .OriginalReviews}}
- + {{svg (MigrationIcon $.Repository.GetOriginalURLHostname)}} {{ .OriginalAuthor }} @@ -308,7 +308,7 @@ {{.i18n.Tr "repo.issues.num_participants" .NumParticipants}}
{{range .Participants}} - + {{avatar . 28 "my-1 mr-2"}} {{end}} @@ -358,7 +358,7 @@ {{.i18n.Tr "repo.issues.tracking_already_started" (.OtherStopwatchURL|Escape) | Safe}}
{{end}} - + - + {{end}}
@@ -411,14 +411,14 @@ {{if ne .Issue.DeadlineUnix 0}}

-
+
{{svg "octicon-calendar" 16 "mr-3"}} {{.Issue.DeadlineUnix.FormatDate}}
{{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}} - {{svg "octicon-pencil" 16 "mr-2"}} - {{svg "octicon-trash"}} + {{svg "octicon-pencil" 16 "mr-2"}} + {{svg "octicon-trash"}} {{end}}
@@ -461,7 +461,7 @@ {{end}} {{if .BlockingDependencies}} - + {{.i18n.Tr "repo.issues.dependency.blocks_short"}}
@@ -477,7 +477,7 @@
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} - + {{svg "octicon-trash" 16}} {{end}} @@ -488,7 +488,7 @@ {{end}} {{if .BlockedByDependencies}} - + {{.i18n.Tr "repo.issues.dependency.blocked_by_short"}}
@@ -504,7 +504,7 @@
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} - + {{svg "octicon-trash" 16}} {{end}} -- cgit v1.2.3