From afb1a47621daae32114259dc85a20c24918f213e Mon Sep 17 00:00:00 2001 From: Thiago Ribeiro Date: Wed, 30 Sep 2015 14:23:54 -0300 Subject: [PATCH] Fix image address in highlightBlock when in subdir --- app/views/blocks/highlights.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/blocks/highlights.html.erb b/app/views/blocks/highlights.html.erb index e330180..8ae96ff 100644 --- a/app/views/blocks/highlights.html.erb +++ b/app/views/blocks/highlights.html.erb @@ -4,7 +4,7 @@
<% block.featured_images.each do |img| %> - <%= content_tag :img, nil, :src => image_source(img[:image_src]), :alt => img[:title] %> + <%= image_tag [Noosfero.root, img[:image_src]].join, alt: img[:title] %>

<%= img[:title] %>

<% end %> -- libgit2 0.21.2