Obfuscation des adresses email

This commit is contained in:
echarp 2014-06-27 12:31:43 +02:00
parent 48ecbe6440
commit 7c49875746
3 changed files with 7 additions and 2 deletions

View File

@ -68,6 +68,9 @@ gem 'simple_calendar'
# Markdown display
gem 'redcarpet'
# email adress obfuscation
gem 'actionview-encoded_mail_to'
# Carte openstreetmap
gem 'openlayers-rails'

View File

@ -38,6 +38,8 @@ GEM
activesupport (= 4.1.2)
builder (~> 3.1)
erubis (~> 2.7.0)
actionview-encoded_mail_to (1.0.4)
rails
activemodel (4.1.2)
activesupport (= 4.1.2)
builder (~> 3.1)
@ -286,6 +288,7 @@ PLATFORMS
ruby
DEPENDENCIES
actionview-encoded_mail_to
activeadmin!
brakeman
coffee-rails

View File

@ -44,8 +44,7 @@
= link_to @event.url, @event.url
%p
Contact:
= mail_to @event.contact.gsub('@', ' CHEZ ').gsub('.', ' POINT '),
@event.contact.gsub('@', ' CHEZ ').gsub('.', ' POINT ')
= mail_to @event.contact, nil, encode: :javascript, replace_at: ' CHEZ ', replace_dot: ' POINT '
- if (@event.tags && @event.tags.present?)
%p.tags