{{$context := .}} {{$result := .Result}} {{$allowed_actions := (allowed_actions $context.Resource.GetActions "batch")}} {{$resource := .Resource}} {{if gt (len $allowed_actions) 0 }}
{{end}} {{$collection_actions := (allowed_actions $context.Resource.GetActions "collection")}} {{if gt (len $collection_actions) 0 }}
{{range $action := $collection_actions}} {{render_with "shared/action_item" (to_map "Action" $action "Result" $result "Context" $context "Resource" $resource "Multiple" true)}} {{end}}
{{end}}