From f28fe34958314dc8f25e386ea5c19f648fc2c5d7 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Thu, 29 May 2014 16:15:39 +1000 Subject: [PATCH] Removing groups modals --- app/views/shopping_shared/_groups.html.haml | 8 ++------ app/views/shopping_shared/_modals.html.haml | 17 ----------------- 2 files changed, 2 insertions(+), 23 deletions(-) delete mode 100644 app/views/shopping_shared/_modals.html.haml diff --git a/app/views/shopping_shared/_groups.html.haml b/app/views/shopping_shared/_groups.html.haml index a218d6aeb5..815cf4ec67 100644 --- a/app/views/shopping_shared/_groups.html.haml +++ b/app/views/shopping_shared/_groups.html.haml @@ -2,9 +2,5 @@ %ul - for group in current_distributor.groups %li - %h4= group.name - %ul - - for sibling in group.enterprises.except(current_distributor) - %li - %a{"data-reveal-id" => "sibling_details_#{sibling.id}", "data-reveal" => ""} - = sibling.name + %h4 + %a= group.name diff --git a/app/views/shopping_shared/_modals.html.haml b/app/views/shopping_shared/_modals.html.haml deleted file mode 100644 index 83a162a470..0000000000 --- a/app/views/shopping_shared/_modals.html.haml +++ /dev/null @@ -1,17 +0,0 @@ -- for group in current_distributor.groups - - for sibling in group.enterprises.except(current_distributor) - .reveal-modal{id: "sibling_details_#{sibling.id}", "data-reveal" => ""} - .row - - if sibling.logo.exists? - .large-1.columns - %img.left{src: sibling.logo.url(:thumb)} - .large-11.columns - %h2 - = sibling.name - .row - .large-8.columns - = sibling.long_description.andand.html_safe - - if sibling.promo_image.exists? - .large-4.columns - %img.about.right{src: sibling.promo_image.url(:large)} - %a.close-reveal-modal ×