= actions_for(folder) - if policy(folder.tasks.new).create? && request.path == dorsale.flyboy_folder_path(folder) = create_button dorsale.new_flyboy_task_path(taskable_guid: folder.guid), text: t("actions.new_task") - if policy(folder).close? = lock_button dorsale.close_flyboy_folder_path(folder), text: t("actions.close") - if policy(folder).open? = unlock_button dorsale.open_flyboy_folder_path(folder), text: t("actions.open")