app/views/dorsale/flyboy/tasks/_context.html.slim in dorsale-3.7.1 vs app/views/dorsale/flyboy/tasks/_context.html.slim in dorsale-3.7.2
- old
+ new
@@ -2,15 +2,21 @@
.context-header
= icon :check_square_o
= " "
= task
- .context-body
+ .context-body class=task_color(task)
= info task, :progress, progress_bar(percentage: task.progress, label: true)
= info task, :owner
= info task, :created_at
= info task, :term
= info task, :reminder_date
= info task, :done
.context-footer
= actions_for task
+
+ - if policy(task).copy?
+ = copy_button copy_flyboy_task_path(task), method: :patch
+
+ - if policy(task).snooze?
+ = snooze_button snooze_flyboy_task_path(task), method: :patch