From 23e360d809d86a80345296d0f3fc535fee5cf45b Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Thu, 11 Apr 2013 15:36:30 +0100 Subject: [PATCH] Don't show icon if icon_url is blank --- app/views/layers/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layers/show.html.haml b/app/views/layers/show.html.haml index f214047..e6be036 100644 --- a/app/views/layers/show.html.haml +++ b/app/views/layers/show.html.haml @@ -42,7 +42,7 @@ %td= link_to 'Delete', s, :confirm => "Delete #{s.feed.title}?", :method => :delete, :class => "button" %td= link_to 'Edit icon', edit_subscription_path(s), :class => "button" %td - - unless s.icon_url.nil? + - unless s.icon_url.blank? = image_tag s.icon_url - else