From 7889b78c8736a8a03bff423f7dfb535ac15281d7 Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 2 Mar 2026 16:40:49 +0100 Subject: [PATCH] Add background and run count to actions list page (#36707) Use flex-container layout and wrap the actions runs list with `ui top attached header` and `ui attached segment` to add a background. Display the total workflow run count in the header. Co-authored-by: Claude Opus 4.6 --- options/locale/locale_en-US.json | 2 ++ templates/repo/actions/list.tmpl | 15 ++++++++++----- templates/repo/actions/workflow_dispatch.tmpl | 2 +- web_src/css/modules/message.css | 9 +++++++++ 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/options/locale/locale_en-US.json b/options/locale/locale_en-US.json index 0f27c8d82d..27695a8f5a 100644 --- a/options/locale/locale_en-US.json +++ b/options/locale/locale_en-US.json @@ -3674,6 +3674,8 @@ "actions.runners.reset_registration_token_confirm": "Would you like to invalidate the current token and generate a new one?", "actions.runners.reset_registration_token_success": "Runner registration token reset successfully", "actions.runs.all_workflows": "All Workflows", + "actions.runs.workflow_run_count_1": "%d workflow run", + "actions.runs.workflow_run_count_n": "%d workflow runs", "actions.runs.commit": "Commit", "actions.runs.scheduled": "Scheduled", "actions.runs.pushed_by": "pushed by", diff --git a/templates/repo/actions/list.tmpl b/templates/repo/actions/list.tmpl index 8bbddebf3f..f31ef1a73a 100644 --- a/templates/repo/actions/list.tmpl +++ b/templates/repo/actions/list.tmpl @@ -5,8 +5,8 @@ {{template "base/alert" .}} {{if .HasWorkflowsOrRuns}} -
-
+
+
-
- {{else}} diff --git a/templates/repo/actions/workflow_dispatch.tmpl b/templates/repo/actions/workflow_dispatch.tmpl index 5a69cb0ba0..8868bde96a 100644 --- a/templates/repo/actions/workflow_dispatch.tmpl +++ b/templates/repo/actions/workflow_dispatch.tmpl @@ -1,4 +1,4 @@ -
+
{{ctx.Locale.Tr "actions.workflow.has_workflow_dispatch"}}
diff --git a/web_src/css/modules/message.css b/web_src/css/modules/message.css index c62dbddd25..7e8a2cf744 100644 --- a/web_src/css/modules/message.css +++ b/web_src/css/modules/message.css @@ -101,6 +101,15 @@ border-color: var(--color-warning-border); } +/* use opaque colors for buttons inside colored messages */ +.ui.message .ui.button:hover { + background: var(--color-secondary); +} + +.ui.message .ui.button:active { + background: var(--color-secondary-hover); +} + .ui.message > .close.icon { cursor: pointer; position: absolute;