Obfuscation des adresses email
This commit is contained in:
parent
48ecbe6440
commit
7c49875746
3
Gemfile
3
Gemfile
@ -68,6 +68,9 @@ gem 'simple_calendar'
|
|||||||
# Markdown display
|
# Markdown display
|
||||||
gem 'redcarpet'
|
gem 'redcarpet'
|
||||||
|
|
||||||
|
# email adress obfuscation
|
||||||
|
gem 'actionview-encoded_mail_to'
|
||||||
|
|
||||||
# Carte openstreetmap
|
# Carte openstreetmap
|
||||||
gem 'openlayers-rails'
|
gem 'openlayers-rails'
|
||||||
|
|
||||||
|
@ -38,6 +38,8 @@ GEM
|
|||||||
activesupport (= 4.1.2)
|
activesupport (= 4.1.2)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
erubis (~> 2.7.0)
|
erubis (~> 2.7.0)
|
||||||
|
actionview-encoded_mail_to (1.0.4)
|
||||||
|
rails
|
||||||
activemodel (4.1.2)
|
activemodel (4.1.2)
|
||||||
activesupport (= 4.1.2)
|
activesupport (= 4.1.2)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
@ -286,6 +288,7 @@ PLATFORMS
|
|||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
|
actionview-encoded_mail_to
|
||||||
activeadmin!
|
activeadmin!
|
||||||
brakeman
|
brakeman
|
||||||
coffee-rails
|
coffee-rails
|
||||||
|
@ -44,8 +44,7 @@
|
|||||||
= link_to @event.url, @event.url
|
= link_to @event.url, @event.url
|
||||||
%p
|
%p
|
||||||
Contact:
|
Contact:
|
||||||
= mail_to @event.contact.gsub('@', ' CHEZ ').gsub('.', ' POINT '),
|
= mail_to @event.contact, nil, encode: :javascript, replace_at: ' CHEZ ', replace_dot: ' POINT '
|
||||||
@event.contact.gsub('@', ' CHEZ ').gsub('.', ' POINT ')
|
|
||||||
|
|
||||||
- if (@event.tags && @event.tags.present?)
|
- if (@event.tags && @event.tags.present?)
|
||||||
%p.tags
|
%p.tags
|
||||||
|
Loading…
Reference in New Issue
Block a user