<% if uploaded_file.image? %>
  <%= link_to '',
        uploaded_file.view_url,
        :class => 'image',
        :style => 'background-image: url(%s)'% uploaded_file.public_filename(:thumb)
  %>
  <span><%=h uploaded_file.title %></span>
<% else %>
  <%= render :partial => 'article', :object => uploaded_file %>
<% end %>

<% if uploaded_file.image? %>
  <%= link_to '',
        uploaded_file.view_url,
        :class => 'image',
        :style => 'background-image: url(%s)'% [Noosfero.root, uploaded_file.public_filename(:thumb)].join
  %>
  <span><%=h uploaded_file.title %></span>
<% else %>
  <%= render :partial => 'article', :object => uploaded_file %>
<% end %>

Fix images url on gallery when Noosfero's under subdirectory
Fix images url on gallery when Noosfero's under subdirectory

Signed-off-by: Tallys Martins <a57906cd5ffd0ae42ef9904e85a23bf39e87dcad@yahoo.com.br>
