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>release/v1.15
parent
ab22ab4a37
commit
b7b5c3368d
|
@ -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>
|
||||
|
|
|
@ -1189,13 +1189,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.ui.participants {
|
||||
img {
|
||||
margin-top: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.ui.depending {
|
||||
.item.is-closed {
|
||||
.title {
|
||||
|
|
Loading…
Reference in New Issue