Skip to content
Extraits de code Groupes Projets
Valider 1ae838b5 rédigé par Giniouxe's avatar Giniouxe Validation de Marien Fressinaud
Parcourir les fichiers

Open invite link in modal

parent da1b0b56
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -5,7 +5,25 @@ ...@@ -5,7 +5,25 @@
#no_contacts.empty_message #no_contacts.empty_message
%p.lead %p.lead
= t('.you_should_add_some_more_contacts') = t('.you_should_add_some_more_contacts')
%p %p
!= t('.try_adding_some_more_contacts', search_link: link_to(t(".search_link_text"), search_path), invite_link: link_to(t(".invite_link_text"), new_user_invitation_path)) != t('.try_adding_some_more_contacts',
- if AppConfig.settings.community_spotlight.enable? search_link: link_to(t('.search_link_text'), search_path),
!= t('.or_spotlight', :link => link_to(t(".community_spotlight") , community_spotlight_path)) invite_link: link_to(t('.invite_link_text'),
"invitationsModal",
id: "invitations-link",
data: {toggle: "modal"}))
= render "shared/modal",
path: new_user_invitation_path,
id: "invitationsModal",
title: t("invitations.new.invite_someone_to_join")
- if AppConfig.settings.community_spotlight.enable?
!= t('.or_spotlight', :link => link_to(t(".community_spotlight") , community_spotlight_path))
-# This will have to be extracte in a JS view
:javascript
$("#invitations-link").click(function(){
app.helpers.showModal("#invitationsModal");
});
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter