app/views/flyboy/tasks/_actions.html.slim in flyboy-0.0.6 vs app/views/flyboy/tasks/_actions.html.slim in flyboy-1.0.0
- old
+ new
@@ -1,10 +1,12 @@
.actions
+ - if can?(:read, @task.goal)
+ = dorsale_button goal_path(@task.goal), text: "Retour au dossier", icon: :tasks
+
- if can?(:update, @task)
= update_button edit_task_path(@task)
- if can?(:snooze, @task)
= snooze_button snooze_task_path(@task)
- if can?(:complete, @task)
= complete_button complete_task_path(@task)
-