[Git][noosfero/noosfero][master] 2 commits: Fix images url on gallery when Noosfero's under subdirectory

Daniela Feitosa gitlab at gitlab.com
Tue Aug 25 15:37:02 BRT 2015


Daniela Feitosa pushed to branch master at Noosfero / noosfero


Commits:
cd3b5fda by Tallys Martins at 2015-08-24T05:47:29Z
Fix images url on gallery when Noosfero's under subdirectory

Signed-off-by: Tallys Martins <tallysmartins at yahoo.com.br>

- - - - -
8f633a81 by Daniela Feitosa at 2015-08-25T15:33:43Z
Merge branch 'softwarepublico/noosfero-fix_gallery_image_url'

Closes merge request !659

- - - - -


1 changed file:

- app/views/content_viewer/_uploaded_file.html.erb


Changes:

=====================================
app/views/content_viewer/_uploaded_file.html.erb
=====================================
--- a/app/views/content_viewer/_uploaded_file.html.erb
+++ b/app/views/content_viewer/_uploaded_file.html.erb
@@ -2,7 +2,7 @@
   <%= link_to '',
         uploaded_file.view_url,
         :class => 'image',
-        :style => 'background-image: url(%s)'% uploaded_file.public_filename(:thumb)
+        :style => 'background-image: url(%s)'% [Noosfero.root, uploaded_file.public_filename(:thumb)].join
   %>
   <span><%=h uploaded_file.title %></span>
 <% else %>



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/1e0cc2a4e01f13aa5dc8f3d96a00591cee7f681b...8f633a817b4686404a469748a0e4edeea472e0c0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150825/0b031edf/attachment-0001.html>


More information about the Noosfero-dev mailing list