forked from kevadesu/forgejo
Add guide page to actions when there's no workflows (#28145)
Before:  After: 
This commit is contained in:
parent
976a9926d7
commit
a6a674e26a
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