chore: rename to NumActionRuns

This commit is contained in:
Jason Song
2023-01-04 18:52:22 +08:00
parent 6148e4c940
commit 95167fd0a2
6 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
<div class="ui compact tiny menu">
<a class="{{if not .IsShowClosed}}active {{end}}item" href="{{$.Link}}?workflow={{.CurWorkflow}}&state=open">
{{svg "octicon-issue-opened" 16 "mr-3"}}
{{.locale.Tr "actions.open_tab" $.NumOpenRuns}}
{{.locale.Tr "actions.open_tab" $.NumOpenActionRuns}}
</a>
<a class="{{if .IsShowClosed}}active {{end}}item" href="{{$.Link}}?workflow={{.CurWorkflow}}&state=closed">
{{svg "octicon-issue-closed" 16 "mr-3"}}
{{.locale.Tr "actions.closed_tab" $.NumClosedRuns}}
{{.locale.Tr "actions.closed_tab" $.NumClosedActionRuns}}
</a>
</div>
+2 -2
View File
@@ -186,8 +186,8 @@
{{if and .EnableActions (not .UnitActionsGlobalDisabled) (.Permission.CanRead $.UnitTypeActions)}}
<a class="{{if .PageIsActions}}active {{end}}item" href="{{.RepoLink}}/actions">
{{svg "octicon-play"}} {{.locale.Tr "actions.actions"}}
{{if .Repository.NumOpenRuns}}
<span class="ui blue small label">{{CountFmt .Repository.NumOpenRuns}}</span>
{{if .Repository.NumOpenActionRuns}}
<span class="ui blue small label">{{CountFmt .Repository.NumOpenActionRuns}}</span>
{{end}}
</a>
{{end}}