Merge pull request #846 from chocoelho/add_conference_email

Add conference email to splashscreen
This commit is contained in:
Christian Bruckmayer 2016-03-07 14:19:05 +01:00
commit feeac2a816
2 changed files with 4 additions and 1 deletions

View file

@ -9,7 +9,7 @@ class Contact < ActiveRecord::Base
format: URI::regexp(%w(http https)), allow_blank: true
def has_social_media?
return true if !facebook.blank? || !twitter.blank? || !googleplus.blank? || !instagram.blank?
return true if !facebook.blank? || !twitter.blank? || !googleplus.blank? || !instagram.blank? || !email.blank?
false
end
end

View file

@ -17,3 +17,6 @@
- unless @conference.contact.googleplus.blank?
= link_to "#{ @conference.contact.googleplus }" do
%i.fa.fa-google-plus-square.fa-4x
- unless @conference.contact.email.blank?
= mail_to "#{ @conference.contact.email }" do
%i.fa.fa-envelope-o.fa-4x