|
25 | 25 | </div> |
26 | 26 | </div> |
27 | 27 | <div class="flex-container-main"> |
28 | | - <div class="ui top attached header tw-flex tw-items-center tw-justify-between"> |
29 | | - <span class="tw-text-base tw-font-semibold">{{ctx.Locale.TrN .Page.Paginater.Total "actions.runs.workflow_run_count_1" "actions.runs.workflow_run_count_n" .Page.Paginater.Total}}</span> |
30 | | - <div class="ui secondary filter menu tw-flex tw-items-center tw-m-0"> |
31 | | - <!-- Actor --> |
32 | | - <div class="ui{{if not .Actors}} disabled{{end}} dropdown jump item"> |
33 | | - <span class="text">{{ctx.Locale.Tr "actions.runs.actor"}}</span> |
34 | | - {{svg "octicon-triangle-down" 14 "dropdown icon"}} |
35 | | - <div class="menu"> |
36 | | - <div class="ui icon search input"> |
37 | | - <i class="icon">{{svg "octicon-search"}}</i> |
38 | | - <input type="text" placeholder="{{ctx.Locale.Tr "actions.runs.actor"}}"> |
39 | | - </div> |
40 | | - <a class="item{{if not $.CurActor}} active{{end}}" href="?workflow={{$.CurWorkflow}}&status={{$.CurStatus}}&actor=0"> |
41 | | - {{ctx.Locale.Tr "actions.runs.actors_no_select"}} |
42 | | - </a> |
43 | | - {{range .Actors}} |
44 | | - <a class="item{{if eq .ID $.CurActor}} active{{end}}" href="?workflow={{$.CurWorkflow}}&actor={{.ID}}&status={{$.CurStatus}}"> |
45 | | - {{ctx.AvatarUtils.Avatar . 20}} {{.GetDisplayName}} |
| 28 | + <div class="ui top attached header flex-text-block tw-flex-wrap tw-justify-between"> |
| 29 | + <strong>{{ctx.Locale.TrN .Page.Paginater.Total "actions.runs.workflow_run_count_1" "actions.runs.workflow_run_count_n" .Page.Paginater.Total}}</strong> |
| 30 | + <div class="ui secondary filter menu flex-text-block tw-m-0"> |
| 31 | + <!-- Actor --> |
| 32 | + <div class="ui{{if not .Actors}} disabled{{end}} dropdown jump item"> |
| 33 | + <span class="text">{{ctx.Locale.Tr "actions.runs.actor"}}</span> |
| 34 | + {{svg "octicon-triangle-down" 14 "dropdown icon"}} |
| 35 | + <div class="menu"> |
| 36 | + <div class="ui icon search input"> |
| 37 | + <i class="icon">{{svg "octicon-search"}}</i> |
| 38 | + <input type="text" placeholder="{{ctx.Locale.Tr "actions.runs.actor"}}"> |
| 39 | + </div> |
| 40 | + <a class="item{{if not $.CurActor}} active{{end}}" href="?workflow={{$.CurWorkflow}}&status={{$.CurStatus}}&actor=0"> |
| 41 | + {{ctx.Locale.Tr "actions.runs.actors_no_select"}} |
46 | 42 | </a> |
47 | | - {{end}} |
48 | | - </div> |
49 | | - </div> |
50 | | - <!-- Status --> |
51 | | - <div class="ui dropdown jump item"> |
52 | | - <span class="text">{{ctx.Locale.Tr "actions.runs.status"}}</span> |
53 | | - {{svg "octicon-triangle-down" 14 "dropdown icon"}} |
54 | | - <div class="menu"> |
55 | | - <div class="ui icon search input"> |
56 | | - <i class="icon">{{svg "octicon-search"}}</i> |
57 | | - <input type="text" placeholder="{{ctx.Locale.Tr "actions.runs.status"}}"> |
| 43 | + {{range .Actors}} |
| 44 | + <a class="item{{if eq .ID $.CurActor}} active{{end}}" href="?workflow={{$.CurWorkflow}}&actor={{.ID}}&status={{$.CurStatus}}"> |
| 45 | + {{ctx.AvatarUtils.Avatar . 20}} {{.GetDisplayName}} |
| 46 | + </a> |
| 47 | + {{end}} |
58 | 48 | </div> |
59 | | - <a class="item{{if not $.CurStatus}} active{{end}}" href="?workflow={{$.CurWorkflow}}&actor={{$.CurActor}}&status=0"> |
60 | | - {{ctx.Locale.Tr "actions.runs.status_no_select"}} |
61 | | - </a> |
62 | | - {{range .StatusInfoList}} |
63 | | - <a class="item{{if eq .Status $.CurStatus}} active{{end}}" href="?workflow={{$.CurWorkflow}}&actor={{$.CurActor}}&status={{.Status}}"> |
64 | | - {{.DisplayedStatus}} |
| 49 | + </div> |
| 50 | + <!-- Status --> |
| 51 | + <div class="ui dropdown jump item"> |
| 52 | + <span class="text">{{ctx.Locale.Tr "actions.runs.status"}}</span> |
| 53 | + {{svg "octicon-triangle-down" 14 "dropdown icon"}} |
| 54 | + <div class="menu"> |
| 55 | + <div class="ui icon search input"> |
| 56 | + <i class="icon">{{svg "octicon-search"}}</i> |
| 57 | + <input type="text" placeholder="{{ctx.Locale.Tr "actions.runs.status"}}"> |
| 58 | + </div> |
| 59 | + <a class="item{{if not $.CurStatus}} active{{end}}" href="?workflow={{$.CurWorkflow}}&actor={{$.CurActor}}&status=0"> |
| 60 | + {{ctx.Locale.Tr "actions.runs.status_no_select"}} |
65 | 61 | </a> |
66 | | - {{end}} |
| 62 | + {{range .StatusInfoList}} |
| 63 | + <a class="item{{if eq .Status $.CurStatus}} active{{end}}" href="?workflow={{$.CurWorkflow}}&actor={{$.CurActor}}&status={{.Status}}"> |
| 64 | + {{.DisplayedStatus}} |
| 65 | + </a> |
| 66 | + {{end}} |
| 67 | + </div> |
67 | 68 | </div> |
68 | | - </div> |
69 | 69 |
|
70 | | - {{if .AllowDisableOrEnableWorkflow}} |
| 70 | + {{if .AllowDisableOrEnableWorkflow}} |
71 | 71 | <button class="ui jump dropdown btn interact-bg tw-p-2"> |
72 | 72 | {{svg "octicon-kebab-horizontal"}} |
73 | 73 | <div class="menu"> |
|
76 | 76 | </a> |
77 | 77 | </div> |
78 | 78 | </button> |
79 | | - {{end}} |
| 79 | + {{end}} |
80 | 80 | </div> |
81 | 81 | </div> |
82 | 82 |
|
|
0 commit comments