diff options
| author | Michel Etienne | 2015-01-08 17:12:27 +0100 |
|---|---|---|
| committer | Michel Etienne | 2015-01-08 17:12:27 +0100 |
| commit | 8a4bb1eb66da1140375071ea153b83946b07aa71 (patch) | |
| tree | f13dc027df0e31406a745e6c592e1ca536b36311 /app | |
| parent | d31369e508a37a46e57146ef9157b0d140c3b073 (diff) | |
| download | chouette-core-8a4bb1eb66da1140375071ea153b83946b07aa71.tar.bz2 | |
manage unauthenticated_root
Diffstat (limited to 'app')
| -rw-r--r-- | app/helpers/users_helper.rb | 4 | ||||
| -rw-r--r-- | app/views/devise/mailer/invitation_instructions.fr.html.erb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index 0ddea8356..a4347bd18 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -5,10 +5,10 @@ module UsersHelper end def user_default_avatar - return "#{root_url}#{image_path('icons/user.png')}" if Rails.application.config.relative_url_root.blank? + return "#{authenticated_root_url}#{image_path('icons/user.png')}" if Rails.application.config.relative_url_root.blank? relative_url_root = Rails.application.config.relative_url_root.gsub( /\//, '') - "#{root_url}#{image_path('icons/user.png')}". + "#{authenticated_root_url}#{image_path('icons/user.png')}". sub( Regexp.new("/#{relative_url_root}/#{relative_url_root}/"), "/#{relative_url_root}/"). sub( Regexp.new("/#{relative_url_root}//#{relative_url_root}/"), "/#{relative_url_root}/") end diff --git a/app/views/devise/mailer/invitation_instructions.fr.html.erb b/app/views/devise/mailer/invitation_instructions.fr.html.erb index 7ef4e6c99..c932763f2 100644 --- a/app/views/devise/mailer/invitation_instructions.fr.html.erb +++ b/app/views/devise/mailer/invitation_instructions.fr.html.erb @@ -1,6 +1,6 @@ <p>Bonjour <%= @resource.email %>,</p> -<p>Ce message est une invitation pour accéder à <%= link_to nil, root_url %>, vous pouvez l'accepter en cliquant sur le lien suivant :</p> +<p>Ce message est une invitation pour accéder à <%= link_to nil, unauthenticated_root_url %>, vous pouvez l'accepter en cliquant sur le lien suivant :</p> <p><%= link_to "Accepter l'invitation", accept_invitation_url(@resource, :invitation_token => @resource.invitation_token) %></p> |
