Skip to content

Commit 9b295e9

Browse files
Actions list (#34530)
Closes #34524 --------- Co-authored-by: wxiaoguang <[email protected]>
1 parent 9d4ebc1 commit 9b295e9

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

templates/repo/actions/runs_list.tmpl

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,23 @@
3636
<div class="run-list-meta">{{svg "octicon-calendar" 16}}{{DateUtils.TimeSince $run.Updated}}</div>
3737
<div class="run-list-meta">{{svg "octicon-stopwatch" 16}}{{$run.Duration}}</div>
3838
</div>
39-
{{if and ($.AllowDeleteWorkflowRuns) ($run.Status.IsDone)}}
40-
<button class="btn interact-bg link-action tw-p-2"
41-
data-url="{{$run.Link}}/delete"
42-
data-modal-confirm="{{ctx.Locale.Tr "actions.runs.delete.description"}}"
43-
data-tooltip-content="{{ctx.Locale.Tr "actions.runs.delete"}}"
44-
>
45-
{{svg "octicon-trash"}}
46-
</button>
47-
{{end}}
39+
<div class="ui dropdown jump tw-p-2">
40+
{{svg "octicon-kebab-horizontal"}}
41+
<div class="menu flex-items-menu">
42+
<!-- TODO: This redundant link should be replaced by something else in future,
43+
because have not figured out how to add "View Workflow" or anything similar to GitHub.
44+
Related: https://github.com/go-gitea/gitea/pull/34530 -->
45+
<a class="item" href="{{$run.Link}}">{{svg "octicon-play"}}{{ctx.Locale.Tr "view"}}</a>
46+
{{if and $.AllowDeleteWorkflowRuns $run.Status.IsDone}}
47+
<a class="item link-action"
48+
data-url="{{$run.Link}}/delete"
49+
data-modal-confirm="{{ctx.Locale.Tr "actions.runs.delete.description"}}"
50+
>
51+
{{svg "octicon-trash"}}{{ctx.Locale.Tr "actions.runs.delete"}}
52+
</a>
53+
{{end}}
54+
</div>
55+
</div>
4856
</div>
4957
</div>
5058
{{end}}

0 commit comments

Comments
 (0)