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 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 }}
You can’t perform that action at this time.
0 commit comments