{{/* Template Attributes: * CanReadUnitActions: true if the actions unit is active and readable * SomePullRequestRunsNeedApproval: true if there is at least one run waiting for approval * UserCanDelegateTrustWithPullRequest: true if the user can delegate trust in the context of pull requests * PullRequestPosterIsNotTrustedWithActions: true if the poster of the pull request needs to be approved to run actions * PullRequestPosterIsExplicitlyTrustedWithActions: true if the poster of the pull request is trusted to run actions (once or always) * PullRequestPosterIsImplicitlyTrustedWithActions: true if the poster of the pull request is trusted to run actions because of elevated permissions * Link: URL to the pull request */}} {{if .CanReadUnitActions}} {{if and .UserCanDelegateTrustWithPullRequest .PullRequestPosterIsExplicitlyTrustedWithActions}}
{{ctx.Locale.Tr "repo.pulls.poster_is_trusted" "https://forgejo.org/docs/latest/user/actions/security-pull-request/"}}
{{else if .SomePullRequestRunsNeedApproval}}
{{svg "octicon-alert" 16 "text red"}} {{ctx.Locale.Tr "repo.pulls.poster_requires_approval" "https://forgejo.org/docs/latest/user/actions/security-pull-request/"}}
{{if .UserCanDelegateTrustWithPullRequest}}
{{end}}
{{end}} {{end}}