From 9daf7e395597b93a35a1e7265b35b2a239e5f12b Mon Sep 17 00:00:00 2001 From: summerscope Date: Wed, 25 Feb 2015 09:38:07 +1100 Subject: [PATCH] Removing spans on follow icons as these show up as blank spaces when no data to fill. --- app/views/groups/_contact.html.haml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/app/views/groups/_contact.html.haml b/app/views/groups/_contact.html.haml index 8b45ca8437..915c608d15 100644 --- a/app/views/groups/_contact.html.haml +++ b/app/views/groups/_contact.html.haml @@ -19,19 +19,15 @@ - if @group.facebook.present? || @group.twitter.present? || @group.linkedin.present? || @group.instagram.present? %div.modal-centered.pad-top %p.modal-header Follow - .follow-icons{bindonce: true} - %span - =link_to_service "http://twitter.com/", @group.twitter do - %i.ofn-i_041-twitter - %span - =link_to_service "https://www.facebook.com/", @group.facebook do - %i.ofn-i_044-facebook - %span - =link_to_service "https://www.linkedin.com/in/", @group.linkedin do - %i.ofn-i_042-linkedin - %span - =link_to_service "http://instagram.com/", @group.instagram do - %i.ofn-i_043-instagram + .follow-icons{bindonce: true} + =link_to_service "http://twitter.com/", @group.twitter do + %i.ofn-i_041-twitter + =link_to_service "https://www.facebook.com/", @group.facebook do + %i.ofn-i_044-facebook + =link_to_service "https://www.linkedin.com/in/", @group.linkedin do + %i.ofn-i_042-linkedin + =link_to_service "http://instagram.com/", @group.instagram do + %i.ofn-i_043-instagram %div{bindonce: true} - if @group.address1.present? || @group.city.present?