Move Conference contact details to Contact

This commit is contained in:
Henne Vogelsang 2014-07-31 20:09:38 +02:00
parent eb3e6898d2
commit 5aa0d58c57
18 changed files with 67 additions and 58 deletions

View file

@ -4,19 +4,19 @@
%div.container#social-media.text-center
%div.row
- unless @conference.facebook_url.blank?
- unless @conference.contact.facebook.blank?
%div.col-md-3
= link_to "#{ @conference.facebook_url }" do
= link_to "#{ @conference.contact.facebook }" do
%i.fa.fa-facebook-square.fa-4x
- unless @conference.twitter_url.blank?
- unless @conference.contact.twitter.blank?
%div.col-md-3
= link_to "#{ @conference.twitter_url }" do
= link_to "#{ @conference.contact.twitter }" do
%i.fa.fa-twitter.fa-4x
- unless @conference.instagram_url.blank?
- unless @conference.contact.instagram.blank?
%div.col-md-3
= link_to "#{ @conference.instagram_url }" do
= link_to "#{ @conference.contact.instagram }" do
%i.fa.fa-instagram.fa-4x
- unless @conference.google_url.blank?
- unless @conference.contact.googleplus.blank?
%div.col-md-3
= link_to "#{ @conference.google_url }" do
= link_to "#{ @conference.contact.googleplus }" do
%i.fa.fa-google-plus-square.fa-4x

View file

@ -52,7 +52,7 @@
.pad
= render 'sponsor'
- if @conference.include_social_media_in_splash?
- if @conference.contact.public?
%section{ id: 'social-media' }
.pad
= render 'social_media'