forgejo/templates/repo/actions/no_workflows.tmpl
yp05327 a6a674e26a
Add guide page to actions when there's no workflows (#28145)
Before:

![image](599d40c1-9b8d-4189-9286-c9c36fb780dd)

After:

![image](848a73d1-aaec-478f-93a7-adcc7ee18907)
2023-11-21 08:27:33 +00:00

8 lines
427 B
Go HTML Template

<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>