File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change 36
36
<div class="run-list-meta">{{svg "octicon-calendar" 16}}{{DateUtils.TimeSince $run.Updated}}</div>
37
37
<div class="run-list-meta">{{svg "octicon-stopwatch" 16}}{{$run.Duration}}</div>
38
38
</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>
48
56
</div>
49
57
</div>
50
58
{{end}}
You can’t perform that action at this time.
0 commit comments