Skip to content

Commit aa8a3d0

Browse files
author
zsbahtiar
committed
feat(action.list): add checkbox all and button delete
1 parent 1e75212 commit aa8a3d0

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

templates/repo/actions/list.tmpl

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,19 @@
2525
</div>
2626
</div>
2727
<div class="twelve wide column content">
28-
<div class="ui secondary filter menu tw-justify-end tw-flex tw-items-center">
28+
<div id="action-filter" class="ui secondary filter menu tw-flex tw-items-center tw-justify-between">
29+
<!-- Checkbox -->
30+
<div class="action-list-toolbar-left">
31+
<input type="checkbox" autocomplete="off" class="action-checkbox-all tw-mr-4 tw-ml-4" title="{{ctx.Locale.Tr "repo.issues.action_check_all"}}">
32+
</div>
33+
<div class="tw-flex tw-items-center">
34+
{{if $.IsRepoAdmin}}
35+
<div id="action-delete" class="ui jump item tw-hidden">
36+
<button class="ui red button action-action" data-action="delete" data-url="{{$.RepoLink}}/actions/runs/delete" data-action-delete-confirm="{{ctx.Locale.Tr "confirm_delete_selected"}}">
37+
{{ctx.Locale.Tr "repo.issues.delete"}}
38+
</button>
39+
</div>
40+
{{end}}
2941
<!-- Actor -->
3042
<div class="ui{{if not .Actors}} disabled{{end}} dropdown jump item">
3143
<span class="text">{{ctx.Locale.Tr "actions.runs.actor"}}</span>
@@ -63,6 +75,7 @@
6375
</a>
6476
{{end}}
6577
</div>
78+
</div>
6679
</div>
6780

6881
{{if .AllowDisableOrEnableWorkflow}}

0 commit comments

Comments
 (0)