From 21d496364a5e654ba535d06269f6c6679b5c2d74 Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 10 Nov 2020 19:28:07 +0100 Subject: Fix tooltips and issue dependency styles (#13458) - Convert all tooltips to JS-based ones, fixing overflow issues - Restyle issue dependencies/dependants - Move popup styles to base style - CSS Helper tweaks - Unify pseudo element selectors and lint for it Fixes: https://github.com/go-gitea/gitea/issues/13400 --- templates/repo/issue/view_content/sidebar.tmpl | 64 ++++++++++++++------------ 1 file changed, 34 insertions(+), 30 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 dad4f7e125..4165ba49e6 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -434,32 +434,35 @@ {{if (and (not .BlockedByDependencies) (not .BlockingDependencies))}} {{.i18n.Tr "repo.issues.dependency.title"}}
-

{{if .Issue.IsPull}} +

+ {{if .Issue.IsPull}} {{.i18n.Tr "repo.issues.dependency.pr_no_dependencies"}} {{else}} {{.i18n.Tr "repo.issues.dependency.issue_no_dependencies"}} - {{end}}

+ {{end}} +

{{end}} {{if .BlockingDependencies}} - - {{.i18n.Tr "repo.issues.dependency.blocks_short"}} + + {{.i18n.Tr "repo.issues.dependency.blocks_short"}}
{{range .BlockingDependencies}} -
- #{{.Issue.Index}} - {{.Issue.Title | RenderEmoji}} -
{{.Repository.OwnerName}}/{{.Repository.Name}}
-
+
+
+ + #{{.Issue.Index}} {{.Issue.Title | RenderEmoji}} + +
+ {{.Repository.OwnerName}}/{{.Repository.Name}} +
+
+
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} - - + + {{svg "octicon-trashcan" 16}} {{end}}
@@ -469,24 +472,25 @@ {{end}} {{if .BlockedByDependencies}} - - {{.i18n.Tr "repo.issues.dependency.blocked_by_short"}} + + {{.i18n.Tr "repo.issues.dependency.blocked_by_short"}}
{{range .BlockedByDependencies}} -
- #{{.Issue.Index}} - {{.Issue.Title | RenderEmoji}} -
{{.Repository.OwnerName}}/{{.Repository.Name}}
-
+
+
+ + #{{.Issue.Index}} {{.Issue.Title | RenderEmoji}} + +
+ {{.Repository.OwnerName}}/{{.Repository.Name}} +
+
+
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} - - + + {{svg "octicon-trashcan" 16}} {{end}}
-- cgit v1.2.3