[Git][noosfero/noosfero][master] should not escape html code of gallery pagination

Leandro Nunes gitlab at mg.gitlab.com
Tue Jul 5 17:39:36 BRT 2016


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
5ff5e42b by Leandro Nunes dos Santos at 2016-07-05T17:38:54-03:00
should not escape html code of gallery pagination

- - - - -


1 changed file:

- app/views/file_presenter/_image.html.erb


Changes:

=====================================
app/views/file_presenter/_image.html.erb
=====================================
--- a/app/views/file_presenter/_image.html.erb
+++ b/app/views/file_presenter/_image.html.erb
@@ -4,15 +4,15 @@
   current_index = images.index(image.encapsulated_file)
   total_of_images = images.count
   link_to_previous = if current_index >= 1
-   link_to(_('« Previous'), images[current_index - 1].view_url, :class => 'previous')
+   link_to(_('« Previous').html_safe, images[current_index - 1].view_url, :class => 'previous')
   else
-    content_tag('span', _('« Previous'), :class => 'previous')
+    content_tag('span', _('« Previous').html_safe, :class => 'previous')
   end
 
   link_to_next = if current_index < total_of_images - 1
-    link_to(_('Next »'), images[current_index + 1].view_url, :class => 'next')
+    link_to(_('Next »').html_safe, images[current_index + 1].view_url, :class => 'next')
   else
-    content_tag('span', _('Next »'), :class => 'next')
+    content_tag('span', _('Next »').html_safe, :class => 'next')
   end
 %>
 



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/5ff5e42bc67b2e4d0f3e218482a48917c3a7fc39
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160705/5d53e694/attachment-0001.html>


More information about the Noosfero-dev mailing list