= t('.share_this') = invite_link(current_user.invitation_code) #invitations-button.btn.btn-link{ "data-toggle" => "modal"} = t(".by_email") = render 'shared/modal', path: new_user_invitation_path, id: 'invitationsModal', title: t('invitations.new.invite_someone_to_join') -# This will have to be extracte in a JS view :javascript $("#invitations-button").click(function(){ app.helpers.showModal("#invitationsModal"); });