demarches-normaliennes/app/views/backoffice/dossiers/_follow_action.html.haml
2016-11-03 16:46:26 +01:00

4 lines
452 B
Text

- if current_gestionnaire.follow?(@facade.dossier.id)
= link_to('Se désabonner'.html_safe, backoffice_dossier_follow_path(dossier_id: @facade.dossier.id), 'data-method' => :put, class: 'btn btn-md btn-danger', id: "suivre_dossier_#{@facade.dossier.id}")
-else
= link_to("S'abonner", backoffice_dossier_follow_path(dossier_id: @facade.dossier.id), 'data-method' => :put, class: 'btn btn-md btn-primary', id: "suivre_dossier_#{@facade.dossier.id}")