From 19e31a264d8da2ee2e3b6080caedae2d6d8157c8 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Fri, 14 Feb 2014 15:49:16 +1100 Subject: [PATCH] Tidying footer contact details --- app/assets/stylesheets/darkswarm/footer.sass | 4 ++++ app/views/shop/_contact_us.html.haml | 22 ++++++++++++++------ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/darkswarm/footer.sass b/app/assets/stylesheets/darkswarm/footer.sass index ba2424e94b..df649a8d59 100644 --- a/app/assets/stylesheets/darkswarm/footer.sass +++ b/app/assets/stylesheets/darkswarm/footer.sass @@ -10,3 +10,7 @@ img display: block margin: 0px auto 8px + + .contact + strong + padding-right: 1em diff --git a/app/views/shop/_contact_us.html.haml b/app/views/shop/_contact_us.html.haml index 2cb4d65984..58a69ed38f 100644 --- a/app/views/shop/_contact_us.html.haml +++ b/app/views/shop/_contact_us.html.haml @@ -1,8 +1,18 @@ .contact.small-2.large-3.columns %h3 Contact - %ul - %li= @distributor.email - %li= @distributor.website - = @distributor.address.address1 - = @distributor.address.address2 - = @distributor.address.city + + %p + %strong E + %a{href: "mailto:#{@distributor.email}"}= @distributor.email + + - unless @distributor.website.blank? + %p + %strong W + %a{href: @distributor.website}= @distributor.website + + %p + = @distributor.address.address1 + %br + = @distributor.address.address2 + %br + = @distributor.address.city