Commit 5ff5e42bc67b2e4d0f3e218482a48917c3a7fc39

Authored by Leandro Santos
1 parent 4615d072

should not escape html code of gallery pagination

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
app/views/file_presenter/_image.html.erb
... ... @@ -4,15 +4,15 @@
4 4 current_index = images.index(image.encapsulated_file)
5 5 total_of_images = images.count
6 6 link_to_previous = if current_index >= 1
7   - link_to(_('« Previous'), images[current_index - 1].view_url, :class => 'previous')
  7 + link_to(_('« Previous').html_safe, images[current_index - 1].view_url, :class => 'previous')
8 8 else
9   - content_tag('span', _('« Previous'), :class => 'previous')
  9 + content_tag('span', _('« Previous').html_safe, :class => 'previous')
10 10 end
11 11  
12 12 link_to_next = if current_index < total_of_images - 1
13   - link_to(_('Next &raquo;'), images[current_index + 1].view_url, :class => 'next')
  13 + link_to(_('Next &raquo;').html_safe, images[current_index + 1].view_url, :class => 'next')
14 14 else
15   - content_tag('span', _('Next &raquo;'), :class => 'next')
  15 + content_tag('span', _('Next &raquo;').html_safe, :class => 'next')
16 16 end
17 17 %>
18 18  
... ...