Commit c3098188e925023f45d8e2e1f061fc49b1a08313
1 parent
b9cfd5f0
Fix Noosfero.root in highlight_block
Signed-off-by: Thiago Ribeiro <thiagitosouza@gmail.com> Signed-off-by: Simião Carvalho <simiaosimis@gmail.com>
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
app/helpers/block_helper.rb
app/views/blocks/highlights.html.erb
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | <div class='highlights-container'> | 4 | <div class='highlights-container'> |
5 | <% block.featured_images.each do |img| %> | 5 | <% block.featured_images.each do |img| %> |
6 | <a href="<%= img[:address] %>" title="<%= img[:title] %>" class="highlights-image-link"> | 6 | <a href="<%= img[:address] %>" title="<%= img[:title] %>" class="highlights-image-link"> |
7 | - <%= content_tag :img, nil, :src => img[:image_src], :alt => img[:title] %> | 7 | + <%= content_tag :img, nil, :src => image_source(img[:image_src]), :alt => img[:title] %> |
8 | <p class="highlights-label"><%= img[:title] %></p> | 8 | <p class="highlights-label"><%= img[:title] %></p> |
9 | </a> | 9 | </a> |
10 | <% end %> | 10 | <% end %> |