|
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 tw-flex-0 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 w-flex-0 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}}
|
|
0 commit comments