13 lines
645 B
Text
13 lines
645 B
Text
= vertical_margin(12)
|
|
|
|
- actions.each_with_index do |action, index|
|
|
- variant = (index == 0 ? :primary : :secondary)
|
|
- case action
|
|
- when MailTemplateConcern::Actions::SHOW
|
|
= round_button(t(:access, scope: [:layouts, :notifications, :actions]), dossier_url(@dossier), variant)
|
|
- when MailTemplateConcern::Actions::ASK_QUESTION
|
|
= round_button(t(:question, scope: [:layouts, :notifications, :actions]), messagerie_dossier_url(@dossier), variant)
|
|
- when MailTemplateConcern::Actions::REPLY
|
|
= round_button(t(:reply, scope: [:layouts, :notifications, :actions]), messagerie_dossier_url(@dossier), variant)
|
|
|
|
= vertical_margin(5)
|