mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-05 20:37:54 +00:00
Actions list (#34530)
Closes #34524 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
9d4ebc1f2c
commit
9b295e984a
@ -36,15 +36,23 @@
|
|||||||
<div class="run-list-meta">{{svg "octicon-calendar" 16}}{{DateUtils.TimeSince $run.Updated}}</div>
|
<div class="run-list-meta">{{svg "octicon-calendar" 16}}{{DateUtils.TimeSince $run.Updated}}</div>
|
||||||
<div class="run-list-meta">{{svg "octicon-stopwatch" 16}}{{$run.Duration}}</div>
|
<div class="run-list-meta">{{svg "octicon-stopwatch" 16}}{{$run.Duration}}</div>
|
||||||
</div>
|
</div>
|
||||||
{{if and ($.AllowDeleteWorkflowRuns) ($run.Status.IsDone)}}
|
<div class="ui dropdown jump tw-p-2">
|
||||||
<button class="btn interact-bg link-action tw-p-2"
|
{{svg "octicon-kebab-horizontal"}}
|
||||||
data-url="{{$run.Link}}/delete"
|
<div class="menu flex-items-menu">
|
||||||
data-modal-confirm="{{ctx.Locale.Tr "actions.runs.delete.description"}}"
|
<!-- TODO: This redundant link should be replaced by something else in future,
|
||||||
data-tooltip-content="{{ctx.Locale.Tr "actions.runs.delete"}}"
|
because have not figured out how to add "View Workflow" or anything similar to GitHub.
|
||||||
>
|
Related: https://github.com/go-gitea/gitea/pull/34530 -->
|
||||||
{{svg "octicon-trash"}}
|
<a class="item" href="{{$run.Link}}">{{svg "octicon-play"}}{{ctx.Locale.Tr "view"}}</a>
|
||||||
</button>
|
{{if and $.AllowDeleteWorkflowRuns $run.Status.IsDone}}
|
||||||
{{end}}
|
<a class="item link-action"
|
||||||
|
data-url="{{$run.Link}}/delete"
|
||||||
|
data-modal-confirm="{{ctx.Locale.Tr "actions.runs.delete.description"}}"
|
||||||
|
>
|
||||||
|
{{svg "octicon-trash"}}{{ctx.Locale.Tr "actions.runs.delete"}}
|
||||||
|
</a>
|
||||||
|
{{end}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
Loading…
Reference in New Issue
Block a user