Skip to content

Commit 63d2cda

Browse files
committed
Button
1 parent 1b5be81 commit 63d2cda

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

options/locale/locale_en-US.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3806,6 +3806,8 @@ runs.no_workflows.documentation = For more information on Gitea Actions, see <a
38063806
runs.no_runs = The workflow has no runs yet.
38073807
runs.empty_commit_message = (empty commit message)
38083808
runs.expire_log_message = Logs have been purged because they were too old.
3809+
runs.delete = Delete workflow run
3810+
runs.delete.description = Are you sure you want to permanently delete this workflow run? <b>This action cannot be undone.</b>
38093811

38103812
workflow.disable = Disable Workflow
38113813
workflow.disable_success = Workflow '%s' disabled successfully.

templates/repo/actions/runs_list.tmpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
<div class="run-list-meta">{{svg "octicon-calendar" 16}}{{DateUtils.TimeSince .Updated}}</div>
3737
<div class="run-list-meta">{{svg "octicon-stopwatch" 16}}{{.Duration}}</div>
3838
</div>
39+
<button class="ui btn interact-bg link-action tw-p-2"
40+
data-url="{{$.Link}}/{{.Index}}/delete"
41+
data-modal-confirm="{{ctx.Locale.Tr "actions.runs.delete.description"}}"
42+
data-tooltip-content="{{ctx.Locale.Tr "actions.runs.delete"}}"
43+
>
44+
{{svg "octicon-trash"}}
45+
</button>
3946
</div>
4047
</div>
4148
{{end}}

0 commit comments

Comments
 (0)