diff options
author | silverwind <me@silverwind.io> | 2020-12-08 04:20:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 22:20:12 -0500 |
commit | b7b5c3368de006ebb51c3c81cf7bc5fc656dbf11 (patch) | |
tree | 5c749375563f49c599aa054a4239f2f26512f14d /templates | |
parent | ab22ab4a37110e989e2060fb088798e783dfcec7 (diff) | |
download | gitea-b7b5c3368de006ebb51c3c81cf7bc5fc656dbf11.tar.gz gitea-b7b5c3368de006ebb51c3c81cf7bc5fc656dbf11.zip |
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>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/issue/view_content/sidebar.tmpl | 18 |
1 files changed, 8 insertions, 10 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 @@ <div class="ui divider"></div> - <div class="ui participants"> + {{if .Participants}} <span class="text"><strong>{{.i18n.Tr "repo.issues.num_participants" .NumParticipants}}</strong></span> - <div> + <div class="ui list df fw"> {{range .Participants}} - <a {{if gt .ID 0}}href="{{.HomeLink}}"{{end}}> - <div class="ui poping up" data-content="{{.GetDisplayName}}" data-position="top center" data-variation="small inverted"> - {{avatar .}} - </div> + <a class="ui poping up" {{if gt .ID 0}}href="{{.HomeLink}}"{{end}} data-content="{{.GetDisplayName}}" data-position="top center" data-variation="small inverted"> + {{avatar . 28 "my-1 mr-2"}} </a> {{end}} </div> - </div> + {{end}} {{if and $.IssueWatch (not .Repository.IsArchived)}} <div class="ui divider"></div> @@ -330,7 +328,7 @@ <div class="ui divider"></div> <div class="ui timetrack"> <span class="text"><strong>{{.i18n.Tr "repo.issues.tracker"}}</strong></span> - <div> + <div class="mt-3"> <form method="POST" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/times/stopwatch/toggle" id="toggle_stopwatch_form"> {{$.CsrfTokenHtml}} </form> @@ -372,11 +370,11 @@ {{end}} {{if gt (len .WorkingUsers) 0}} <div class="ui divider"></div> - <div class="ui participants comments"> + <div class="ui comments"> <span class="text"><strong>{{.i18n.Tr "repo.issues.time_spent_from_all_authors" ($.Issue.TotalTrackedTime | Sec2Time) | Safe}}</strong></span> <div> {{range $user, $trackedtime := .WorkingUsers}} - <div class="comment"> + <div class="comment mt-3"> <a class="avatar"> {{avatar $user}} </a> |