diff --git a/layouts/detail.erb b/layouts/detail.erb index 72b6fe1..041eec8 100644 --- a/layouts/detail.erb +++ b/layouts/detail.erb @@ -16,7 +16,7 @@ <%if item[:deelname_link] || item[:contact] || item[:website]%> <% if item[:deelname_link] %><%= item[:deelname_link] %><% end %>
- <% if item[:contact] %><%= item[:contact] %><%end%> + <% if item[:contact] %><%= item[:contact] %>"><%= item[:contact] %><%end%> <% if item[:website] %><%= item[:website] %><%end%>
<%end%> <% if item[:social] %> diff --git a/lib/helpers/verenigingen.rb b/lib/helpers/verenigingen.rb index 075d4fa..cbe2bc8 100644 --- a/lib/helpers/verenigingen.rb +++ b/lib/helpers/verenigingen.rb @@ -84,4 +84,8 @@ module VerenigingenHelper def image_tag(item) "#{ item[:naam] } logo" end + + def is_email(item) + item.match URI::MailTo::EMAIL_REGEXP + end end