|  | 
| 2 | 2 | 	{{if and .CanUseTimetracker (not .Repository.IsArchived)}} | 
| 3 | 3 | 		<div class="divider"></div> | 
| 4 | 4 | 		<div> | 
| 5 |  | -			<div class="ui dropdown full-width jump"> | 
| 6 |  | -				<a class="fixed-text muted"> | 
| 7 |  | -					<div> | 
| 8 |  | -						<strong>{{ctx.Locale.Tr "repo.issues.tracker"}}</strong> | 
| 9 |  | -						{{if $.IsStopwatchRunning}}{{svg "octicon-stopwatch"}}{{end}} | 
| 10 |  | -					</div> | 
| 11 |  | -					{{svg "octicon-gear"}} | 
| 12 |  | -				</a> | 
| 13 |  | -				<div class="menu"> | 
| 14 |  | -					<a class="item issue-set-time-estimate show-modal" data-modal="#issue-time-set-estimate-modal"> | 
| 15 |  | -						{{svg "octicon-pencil"}} {{ctx.Locale.Tr "repo.issues.time_estimate_set"}} | 
| 16 |  | -					</a> | 
| 17 |  | -					<div class="divider"></div> | 
| 18 |  | -					{{if $.IsStopwatchRunning}} | 
| 19 |  | -					<a class="item issue-stop-time link-action" data-url="{{.Issue.Link}}/times/stopwatch/stop"> | 
| 20 |  | -						{{svg "octicon-stopwatch"}} {{ctx.Locale.Tr "repo.issues.timetracker_timer_stop"}} | 
| 21 |  | -					</a> | 
| 22 |  | -					<a class="item issue-cancel-time link-action" data-url="{{.Issue.Link}}/times/stopwatch/cancel"> | 
| 23 |  | -						{{svg "octicon-trash"}} {{ctx.Locale.Tr "repo.issues.timetracker_timer_discard"}} | 
| 24 |  | -					</a> | 
| 25 |  | -					{{else}} | 
| 26 |  | -					<a class="item issue-start-time link-action" data-url="{{.Issue.Link}}/times/stopwatch/start"> | 
| 27 |  | -						{{svg "octicon-stopwatch"}} {{ctx.Locale.Tr "repo.issues.timetracker_timer_start"}} | 
| 28 |  | -					</a> | 
| 29 |  | -					<a class="item issue-add-time show-modal" data-modal="#issue-time-manually-add-modal"> | 
| 30 |  | -						{{svg "octicon-plus"}} {{ctx.Locale.Tr "repo.issues.timetracker_timer_manually_add"}} | 
| 31 |  | -					</a> | 
| 32 |  | -					{{end}} | 
| 33 |  | -				</div> | 
|  | 5 | +			<div class="flex-text-block"> | 
|  | 6 | +				<strong class="tw-flex-1">{{ctx.Locale.Tr "repo.issues.tracker"}}</strong> | 
|  | 7 | +				<button class="btn interact-fg show-modal" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.time_estimate_set"}}" data-modal="#issue-time-set-estimate-modal"> | 
|  | 8 | +					{{svg "octicon-pencil"}} | 
|  | 9 | +				</button> | 
|  | 10 | +			</div> | 
|  | 11 | +			<div class="ui buttons tw-mt-2 tw-w-full"> | 
|  | 12 | +			{{if $.IsStopwatchRunning}} | 
|  | 13 | +				<button class="ui button tw-flex-1 issue-stop-time link-action" data-url="{{.Issue.Link}}/times/stopwatch/stop"> | 
|  | 14 | +					{{svg "octicon-stopwatch"}} {{ctx.Locale.Tr "repo.issues.timetracker_timer_stop"}} | 
|  | 15 | +				</button> | 
|  | 16 | +				<button class="ui icon button issue-cancel-time link-action" data-url="{{.Issue.Link}}/times/stopwatch/cancel" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.timetracker_timer_discard"}}"> | 
|  | 17 | +					{{svg "octicon-trash"}} | 
|  | 18 | +				</button> | 
|  | 19 | +			{{else}} | 
|  | 20 | +				<button class="ui button tw-flex-1 issue-start-time link-action" data-url="{{.Issue.Link}}/times/stopwatch/start"> | 
|  | 21 | +					{{svg "octicon-stopwatch"}} {{ctx.Locale.Tr "repo.issues.timetracker_timer_start"}} | 
|  | 22 | +				</button> | 
|  | 23 | +				<button class="ui icon button issue-add-time show-modal" data-modal="#issue-time-manually-add-modal" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.timetracker_timer_manually_add"}}"> | 
|  | 24 | +					{{svg "octicon-plus"}} | 
|  | 25 | +				</button> | 
|  | 26 | +			{{end}} | 
| 34 | 27 | 			</div> | 
| 35 | 28 | 
 | 
| 36 | 29 | 			{{if and (not $.IsStopwatchRunning) .HasUserStopwatch}} | 
|  | 
| 74 | 67 | 		</div> | 
| 75 | 68 | 	{{end}} | 
| 76 | 69 | 	{{if .WorkingUsers}} | 
| 77 |  | -		<div class="ui comments tw-mt-2"> | 
|  | 70 | +		<div class="tw-mt-2"> | 
| 78 | 71 | 			{{ctx.Locale.Tr "repo.issues.time_spent_from_all_authors" ($.Issue.TotalTrackedTime | Sec2Hour)}} | 
| 79 |  | -			<div> | 
| 80 |  | -				{{range $user, $trackedtime := .WorkingUsers}} | 
| 81 |  | -					<div class="comment tw-mt-2"> | 
| 82 |  | -						<a class="avatar"> | 
| 83 |  | -							{{ctx.AvatarUtils.Avatar $user}} | 
| 84 |  | -						</a> | 
| 85 |  | -						<div class="content"> | 
| 86 |  | -							{{template "shared/user/authorlink" $user}} | 
| 87 |  | -							<div class="text"> | 
| 88 |  | -								{{$trackedtime|Sec2Hour}} | 
| 89 |  | -							</div> | 
| 90 |  | -						</div> | 
|  | 72 | +		</div> | 
|  | 73 | +		<div class="ui list flex-items-block"> | 
|  | 74 | +			{{range $user, $trackedtime := .WorkingUsers}} | 
|  | 75 | +				<div class="item tw-gap-3"> | 
|  | 76 | +					{{template "shared/user/avatarlink" dict "user" $user}} | 
|  | 77 | +					<div> | 
|  | 78 | +						{{template "shared/user/authorlink" $user}} | 
|  | 79 | +						<div class="text">{{$trackedtime|Sec2Hour}}</div> | 
| 91 | 80 | 					</div> | 
| 92 |  | -				{{end}} | 
| 93 |  | -			</div> | 
|  | 81 | +				</div> | 
|  | 82 | +			{{end}} | 
| 94 | 83 | 		</div> | 
| 95 | 84 | 	{{end}} | 
| 96 | 85 | {{end}} | 
0 commit comments