From 576f10dbc39dfee489ab745f7a096e4737da3b9f Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Wed, 28 May 2014 12:58:23 +1000 Subject: [PATCH] Adding ng-if checks Conflicts: app/views/modals/_producer.html.haml --- app/views/modals/_producer.html.haml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/views/modals/_producer.html.haml b/app/views/modals/_producer.html.haml index 6798598f49..51ad2e4852 100644 --- a/app/views/modals/_producer.html.haml +++ b/app/views/modals/_producer.html.haml @@ -13,24 +13,24 @@ %img.producer-logo{"ng-src" => "{{producer.logo}}"} %h4 Stay in touch with {{ producer.name }} %ul.small-block-grid-1{bindonce: true} - %li{"bo-if" => "producer.website"} - %a{"bo-href" => "{{producer.website}}", target: "_blank" } + %li{"ng-if" => "producer.website"} + %a{"ng-href" => "{{producer.website}}", target: "_blank" } %i.fi-web {{ producer.website }} - %li + %li{"ng-if" => "producer.twitter"} %a{"ng-href" => "http://twitter.com/{{producer.twitter}}", target: "_blank"} %i.fi-social-twitter {{ producer.twitter }} - %li - %a{"bo-href" => "{{producer.facebook}}", target: "_blank"} + %li{"ng-if" => "producer.facebook"} + %a{"ng-href" => "{{producer.facebook}}", target: "_blank"} %i.fi-social-facebook {{ producer.facebook }} - %li - %a{"bo-href" => "{{producer.linkedin}}", target: "_blank"} + %li{"ng-if" => "producer.linkedin"} + %a{"ng-href" => "{{producer.linkedin}}", target: "_blank"} %i.fi-social-linkedin {{ producer.linkedin }} - %li - %a{"bo-href" => "http://instagram.com/{{producer.instagram}}", target: "_blank"} + %li{"ng-if" => "producer.instagram"} + %a{"ng-href" => "http://instagram.com/{{producer.instagram}}", target: "_blank"} / Will needs logic to allow user to input @instagramhandle to drive a logical URL %i.fi-social-instagram {{ producer.instagram }}