2019-07-23 15:26:55 +02:00
|
|
|
= vertical_margin(12)
|
2019-07-22 15:21:05 +02:00
|
|
|
|
|
|
|
- actions.each_with_index do |action, index|
|
|
|
|
- variant = (index == 0 ? :primary : :secondary)
|
|
|
|
- case action
|
|
|
|
- when MailTemplateConcern::Actions::SHOW
|
2021-08-26 12:47:23 +02:00
|
|
|
= round_button(t(:access, scope: [:layouts, :notifications, :actions]), dossier_url(@dossier), variant)
|
2019-07-22 15:21:05 +02:00
|
|
|
- when MailTemplateConcern::Actions::ASK_QUESTION
|
2021-08-26 12:47:23 +02:00
|
|
|
= round_button(t(:question, scope: [:layouts, :notifications, :actions]), messagerie_dossier_url(@dossier), variant)
|
2019-07-22 15:21:05 +02:00
|
|
|
- when MailTemplateConcern::Actions::REPLY
|
2021-08-26 12:47:23 +02:00
|
|
|
= round_button(t(:reply, scope: [:layouts, :notifications, :actions]), messagerie_dossier_url(@dossier), variant)
|
2019-07-22 15:21:05 +02:00
|
|
|
|
2019-07-23 15:26:55 +02:00
|
|
|
= vertical_margin(5)
|