1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

use html_safe instead of raw amatsuda/kaminari#73

This commit is contained in:
Zachary Scott 2013-07-12 01:06:10 -04:00
parent b84a4f99e7
commit d45f46a3b1
15 changed files with 15 additions and 15 deletions

View file

@ -7,5 +7,5 @@
remote: data-remote remote: data-remote
-%> -%>
<span class="first"> <span class="first">
<%= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote %> <%= link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, :remote => remote %>
</span> </span>

View file

@ -6,4 +6,4 @@
-# per_page: number of items to fetch per page -# per_page: number of items to fetch per page
-# remote: data-remote -# remote: data-remote
%span.first %span.first
= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote = link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, :remote => remote

View file

@ -6,5 +6,5 @@
per_page : number of items to fetch per page per_page : number of items to fetch per page
remote : data-remote remote : data-remote
span.first span.first
== link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote == link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, :remote => remote
' '

View file

@ -5,4 +5,4 @@
per_page: number of items to fetch per page per_page: number of items to fetch per page
remote: data-remote remote: data-remote
-%> -%>
<span class="page gap"><%= raw(t 'views.pagination.truncate') %></span> <span class="page gap"><%= t('views.pagination.truncate').html_safe %></span>

View file

@ -5,4 +5,4 @@
-# per_page: number of items to fetch per page -# per_page: number of items to fetch per page
-# remote: data-remote -# remote: data-remote
%span.page.gap %span.page.gap
= raw(t 'views.pagination.truncate') = t('views.pagination.truncate').html_safe

View file

@ -5,5 +5,5 @@
per_page : number of items to fetch per page per_page : number of items to fetch per page
remote : data-remote remote : data-remote
span.page.gap span.page.gap
== raw(t 'views.pagination.truncate') == t('views.pagination.truncate').html_safe
' '

View file

@ -7,5 +7,5 @@
remote: data-remote remote: data-remote
-%> -%>
<span class="last"> <span class="last">
<%= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, :remote => remote %> <%= link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, :remote => remote %>
</span> </span>

View file

@ -6,4 +6,4 @@
-# per_page: number of items to fetch per page -# per_page: number of items to fetch per page
-# remote: data-remote -# remote: data-remote
%span.last %span.last
= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, :remote => remote = link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, :remote => remote

View file

@ -6,5 +6,5 @@
per_page : number of items to fetch per page per_page : number of items to fetch per page
remote : data-remote remote : data-remote
span.last span.last
== link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, :remote => remote == link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, :remote => remote
' '

View file

@ -7,5 +7,5 @@
remote: data-remote remote: data-remote
-%> -%>
<span class="next"> <span class="next">
<%= link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote %> <%= link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, :rel => 'next', :remote => remote %>
</span> </span>

View file

@ -6,4 +6,4 @@
-# per_page: number of items to fetch per page -# per_page: number of items to fetch per page
-# remote: data-remote -# remote: data-remote
%span.next %span.next
= link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote = link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, :rel => 'next', :remote => remote

View file

@ -6,5 +6,5 @@
per_page : number of items to fetch per page per_page : number of items to fetch per page
remote : data-remote remote : data-remote
span.next span.next
== link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote == link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, :rel => 'next', :remote => remote
' '

View file

@ -7,5 +7,5 @@
remote: data-remote remote: data-remote
-%> -%>
<span class="prev"> <span class="prev">
<%= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote %> <%= link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, :rel => 'prev', :remote => remote %>
</span> </span>

View file

@ -6,4 +6,4 @@
-# per_page: number of items to fetch per page -# per_page: number of items to fetch per page
-# remote: data-remote -# remote: data-remote
%span.prev %span.prev
= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote = link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, :rel => 'prev', :remote => remote

View file

@ -6,5 +6,5 @@
per_page : number of items to fetch per page per_page : number of items to fetch per page
remote : data-remote remote : data-remote
span.prev span.prev
== link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote == link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, :rel => 'prev', :remote => remote
' '