From 0006169f38f757e35c61169cb0a5da051ff696fe Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 4 Jul 2023 11:59:47 +0200 Subject: Actions list enhancements (#25601) Various small enhancements to the actions list. Before and after: Screenshot 2023-06-30 at 00 11 40 Screenshot 2023-06-30 at 00 09 51 --------- Co-authored-by: Giteabot --- templates/repo/actions/list.tmpl | 1 - templates/repo/actions/runs_list.tmpl | 35 +++++++++++++++++++---------------- 2 files changed, 19 insertions(+), 17 deletions(-) (limited to 'templates/repo') diff --git a/templates/repo/actions/list.tmpl b/templates/repo/actions/list.tmpl index 46cbb34670..f4f0aa9d6d 100644 --- a/templates/repo/actions/list.tmpl +++ b/templates/repo/actions/list.tmpl @@ -6,7 +6,6 @@
{{end}} {{range .Runs}} -
  • +
  • {{template "repo/actions/status" (dict "status" .Status.String "locale" $.locale)}}
    -
    -
    +
    + -
    - {{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}: {{$.locale.Tr "actions.runs.commit"}} - {{ShortSha .CommitSHA}}{{$.locale.Tr "actions.runs.pushed_by"}} {{.TriggerUser.GetDisplayName}} - - {{if .RefLink}} - {{.PrettyRef}} - {{else}} - {{.PrettyRef}} - {{end}} - +
    + {{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}} + : {{$.locale.Tr "actions.runs.commit"}} + {{ShortSha .CommitSHA}} + {{$.locale.Tr "actions.runs.pushed_by"}} + {{.TriggerUser.GetDisplayName}}
    -
    -
    {{TimeSinceUnix .Updated $.locale}}
    -
    {{.Duration}}
    +
    + {{if .RefLink}} + {{.PrettyRef}} + {{else}} + {{.PrettyRef}} + {{end}} +
    +
    +
    {{svg "octicon-calendar" 16 "gt-mr-2"}}{{TimeSinceUnix .Updated $.locale}}
    +
    {{svg "octicon-stopwatch" 16 "gt-mr-2"}}{{.Duration}}
  • {{end}} -- cgit v1.2.3