Sha256: ba64cb425eb9c1721c1b66707436f8aee784ff669f66e4d2e9dc7932b432efcc

Contents?: true

Size: 440 Bytes

Versions: 10

Compression:

Stored size: 440 Bytes

Contents

= 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")

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dorsale-3.3.0 app/views/dorsale/flyboy/folders/_context_actions.html.slim
dorsale-3.2.0 app/views/dorsale/flyboy/folders/_actions.html.slim
dorsale-3.1.7 app/views/dorsale/flyboy/folders/_actions.html.slim
dorsale-3.1.6 app/views/dorsale/flyboy/folders/_actions.html.slim
dorsale-3.1.5 app/views/dorsale/flyboy/folders/_actions.html.slim
dorsale-3.1.4 app/views/dorsale/flyboy/folders/_actions.html.slim
dorsale-3.1.3 app/views/dorsale/flyboy/folders/_actions.html.slim
dorsale-3.1.2 app/views/dorsale/flyboy/folders/_actions.html.slim
dorsale-3.1.1 app/views/dorsale/flyboy/folders/_actions.html.slim
dorsale-3.1.0 app/views/dorsale/flyboy/folders/_actions.html.slim