Commit cd3b5fda7e4b7588e202868307054234a8c86d0e
1 parent
1e0cc2a4
Exists in
fix_gallery_image_url
and in
2 other branches
Fix images url on gallery when Noosfero's under subdirectory
Signed-off-by: Tallys Martins <tallysmartins@yahoo.com.br>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/content_viewer/_uploaded_file.html.erb
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | <%= link_to '', |
3 | 3 | uploaded_file.view_url, |
4 | 4 | :class => 'image', |
5 | - :style => 'background-image: url(%s)'% uploaded_file.public_filename(:thumb) | |
5 | + :style => 'background-image: url(%s)'% [Noosfero.root, uploaded_file.public_filename(:thumb)].join | |
6 | 6 | %> |
7 | 7 | <span><%=h uploaded_file.title %></span> |
8 | 8 | <% else %> | ... | ... |