forked from forgejo/forgejo
Backport #28145 by @yp05327 Before:  After:  Co-authored-by: yp05327 <576951401@qq.com> (cherry picked from commit9bfee5014b
)
This commit is contained in:
parent
2f8672c4dc
commit
c5bb91a9eb
4 changed files with 16 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
<div class="ui container">
|
||||
{{template "base/alert" .}}
|
||||
|
||||
{{if .workflows}}
|
||||
<div class="ui stackable grid">
|
||||
<div class="four wide column">
|
||||
<div class="ui fluid vertical menu">
|
||||
|
@ -78,6 +79,9 @@
|
|||
{{template "repo/actions/runs_list" .}}
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
{{template "repo/actions/no_workflows" .}}
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{template "base/footer" .}}
|
||||
|
|
8
templates/repo/actions/no_workflows.tmpl
Normal file
8
templates/repo/actions/no_workflows.tmpl
Normal file
|
@ -0,0 +1,8 @@
|
|||
<div class="empty-placeholder">
|
||||
{{svg "octicon-no-entry" 48}}
|
||||
<h2>{{ctx.Locale.Tr "actions.runs.no_workflows"}}</h2>
|
||||
{{if and .CanWriteCode .CanWriteActions}}
|
||||
<p>{{ctx.Locale.Tr "actions.runs.no_workflows.quick_start" "https://docs.gitea.com/usage/actions/quickstart/" | Safe}}</p>
|
||||
{{end}}
|
||||
<p>{{ctx.Locale.Tr "actions.runs.no_workflows.documentation" "https://docs.gitea.com/usage/actions/overview/" | Safe}}</p>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue