From 5ff5e42bc67b2e4d0f3e218482a48917c3a7fc39 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Tue, 5 Jul 2016 17:38:54 -0300 Subject: [PATCH] should not escape html code of gallery pagination --- app/views/file_presenter/_image.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/file_presenter/_image.html.erb b/app/views/file_presenter/_image.html.erb index 3c8c808..97fc352 100644 --- 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 %> -- libgit2 0.21.2