From b7b5c3368de006ebb51c3c81cf7bc5fc656dbf11 Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 8 Dec 2020 04:20:12 +0100 Subject: [PATCH] Fix issue participants (#13893) * Fix issue participants * use list class for margin * remove wrapper and don't render on zero participants * keep whitespace * remove participants class * add some margin for timetracking stuff Co-authored-by: 6543 <6543@obermui.de> --- templates/repo/issue/view_content/sidebar.tmpl | 18 ++++++++---------- web_src/less/_repository.less | 7 ------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index d778beee4e..a8f0ed5ab4 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -290,18 +290,16 @@
-
+ {{if .Participants}} {{.i18n.Tr "repo.issues.num_participants" .NumParticipants}} -
+ -
+ {{end}} {{if and $.IssueWatch (not .Repository.IsArchived)}}
@@ -330,7 +328,7 @@
{{.i18n.Tr "repo.issues.tracker"}} -
+
{{$.CsrfTokenHtml}}
@@ -372,11 +370,11 @@ {{end}} {{if gt (len .WorkingUsers) 0}}
-
+
{{.i18n.Tr "repo.issues.time_spent_from_all_authors" ($.Issue.TotalTrackedTime | Sec2Time) | Safe}}
{{range $user, $trackedtime := .WorkingUsers}} -
+
{{avatar $user}} diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 9925a79202..b4cff3490d 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -1189,13 +1189,6 @@ } } - .ui.participants { - img { - margin-top: 5px; - margin-right: 5px; - } - } - .ui.depending { .item.is-closed { .title {