From ce5470abe1d1c284b80c668098d4e1ce935ccc98 Mon Sep 17 00:00:00 2001 From: metiftikci Date: Fri, 27 Dec 2024 18:47:51 +0000 Subject: [PATCH 1/2] always show assignees on right --- templates/shared/issuelist.tmpl | 52 ++++++++++++++++----------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/templates/shared/issuelist.tmpl b/templates/shared/issuelist.tmpl index a2b802f2a2d0f..d075d16eb8d2e 100644 --- a/templates/shared/issuelist.tmpl +++ b/templates/shared/issuelist.tmpl @@ -25,32 +25,6 @@ {{end}} - {{if or .TotalTrackedTime .Assignees .NumComments}} -
- {{if .TotalTrackedTime}} -
- {{svg "octicon-clock" 16}} - {{.TotalTrackedTime | Sec2Time}} -
- {{end}} - {{if .Assignees}} -
- {{range .Assignees}} - - {{ctx.AvatarUtils.Avatar . 20}} - - {{end}} -
- {{end}} - {{if .NumComments}} - - {{end}} -
- {{end}}
@@ -152,6 +126,32 @@ {{end}}
+ {{if or .TotalTrackedTime .Assignees .NumComments}} +
+ {{if .TotalTrackedTime}} +
+ {{svg "octicon-clock" 16}} + {{.TotalTrackedTime | Sec2Time}} +
+ {{end}} + {{if .Assignees}} +
+ {{end}} + {{if .NumComments}} + + {{end}} +
+ {{end}} {{end}} {{if .IssueIndexerUnavailable}} From 68841c4518e1607459580a184eee951f10e9af5e Mon Sep 17 00:00:00 2001 From: metiftikci Date: Sat, 28 Dec 2024 15:47:23 +0000 Subject: [PATCH 2/2] wrap only time --- templates/shared/issuelist.tmpl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/shared/issuelist.tmpl b/templates/shared/issuelist.tmpl index d075d16eb8d2e..e8015b40eacb5 100644 --- a/templates/shared/issuelist.tmpl +++ b/templates/shared/issuelist.tmpl @@ -25,6 +25,12 @@ {{end}} + {{if .TotalTrackedTime}} +
+ {{svg "octicon-clock" 16}} + {{.TotalTrackedTime | Sec2Time}} +
+ {{end}} - {{if or .TotalTrackedTime .Assignees .NumComments}} + {{if or .Assignees .NumComments}}
- {{if .TotalTrackedTime}} -
- {{svg "octicon-clock" 16}} - {{.TotalTrackedTime | Sec2Time}} -
- {{end}} {{if .Assignees}}
{{range .Assignees}}