Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename foundation => foundation5 & foundation6 => foundation
- Loading branch information
Showing
50 changed files
with
148 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
# Pagination theme for [Zurb Foundation](http://foundation.zurb.com) | ||
# Pagination theme for [Zurb Foundation 6.2.0](http://foundation.zurb.com) | ||
|
||
With support for: | ||
This theme follows [the documented mark-up](http://foundation.zurb.com/sites/docs/pagination.html) | ||
for version 6.2.0. | ||
|
||
- erb | ||
- haml | ||
## Supported template engines: | ||
|
||
- erb (untested) | ||
- [haml](http://haml.info) | ||
- [hamlit](https://github.com/k0kubun/hamlit) | ||
- [slim](http://slim-lang.com/) (untested) | ||
|
||
## Tips | ||
|
||
- The pagination is not centered by default. To render the pagination centered, | ||
simply add the `text-centered` class to the `ul` or a wrapping container, or | ||
apply a `text-align: center` style as per [the documentation](http://foundation.zurb.com/sites/docs/pagination.html#centered). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
li | ||
= link_to_unless(current_page.first?, | ||
raw(t 'views.pagination.first'), url, :remote => remote) | ||
= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
<li class="unavailable"> | ||
<%= link_to raw(t 'views.pagination.truncate'), '#' %> | ||
</li> | ||
<li aria-hidden="true" class="ellipsis"></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
%li.unavailable | ||
= link_to raw(t 'views.pagination.truncate'), '#' | ||
%li.ellipsis{ :"aria-hidden" => "true" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
li.unavailable | ||
= link_to raw(t 'views.pagination.truncate'), '#' | ||
li.ellipsis aria-hidden=("true" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
li | ||
= link_to_unless(current_page.last?, | ||
raw(t 'views.pagination.last'), url, { :remote => remote }) | ||
= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
li | ||
= link_to_unless(current_page.last?, | ||
raw(t 'views.pagination.next'), | ||
url, :rel => 'next', :remote => remote) | ||
= link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
<li class="<%= 'current' if page.current? %>"> | ||
<%= link_to page, page.current? ? '#' : url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %> | ||
<% if page.current? %> | ||
<%= page %> | ||
<% else %> | ||
<%= link_to page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %> | ||
<% end %> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
%li{class: "#{'current' if page.current?}"} | ||
= link_to page, page.current? ? '#' : url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} | ||
- if page.current? | ||
= page | ||
- else | ||
= link_to page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
li{class="#{'current' if page.current?}"} | ||
= link_to(page, page.current? ? '#' : url, | ||
{ :remote => remote, | ||
:rel => page.next? ? 'next' : page.prev? ? 'prev' : nil }) | ||
li class: "#{'current' if page.current?}" | ||
- if page.current? | ||
= page | ||
- else | ||
= link_to page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
<%= paginator.render do -%> | ||
<div class="pagination-centered"> | ||
<ul class="pagination"> | ||
<%= first_page_tag unless current_page.first? %> | ||
<%= prev_page_tag unless current_page.first? %> | ||
<% each_page do |page| -%> | ||
<% if page.left_outer? || page.right_outer? || page.inside_window? -%> | ||
<%= page_tag page %> | ||
<% elsif !page.was_truncated? -%> | ||
<%= gap_tag %> | ||
<% end -%> | ||
<% end -%> | ||
<%= next_page_tag unless current_page.last? %> | ||
<%= last_page_tag unless current_page.last? %> | ||
</ul> | ||
</div> | ||
<% end -%> | ||
<%= paginator.render do %> | ||
<ul aria-label="Pagination" class="pagination" role="pagination"> | ||
<%= first_page_tag unless current_page.first? %> | ||
<%= prev_page_tag unless current_page.first? %> | ||
<% each_page do |page| %> | ||
<% if page.left_outer? || page.right_outer? || page.inside_window? %> | ||
<%= page_tag page %> | ||
<% elsif !page.was_truncated? %> | ||
<%= gap_tag %> | ||
<% end %> | ||
<% end %> | ||
<%= next_page_tag unless current_page.last? %> | ||
<%= last_page_tag unless current_page.last? %> | ||
</ul> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
= paginator.render do | ||
.pagination-centered | ||
%ul.pagination | ||
= first_page_tag unless current_page.first? | ||
= prev_page_tag unless current_page.first? | ||
- each_page do |page| | ||
- if page.left_outer? || page.right_outer? || page.inside_window? | ||
= page_tag page | ||
- elsif !page.was_truncated? | ||
= gap_tag | ||
= next_page_tag unless current_page.last? | ||
= last_page_tag unless current_page.last? | ||
%ul.pagination{ :role => "pagination", :"aria-label" => "Pagination" } | ||
= first_page_tag unless current_page.first? | ||
= prev_page_tag unless current_page.first? | ||
- each_page do |page| | ||
- if page.left_outer? || page.right_outer? || page.inside_window? | ||
= page_tag page | ||
- elsif !page.was_truncated? | ||
= gap_tag | ||
= next_page_tag unless current_page.last? | ||
= last_page_tag unless current_page.last? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
= paginator.render do | ||
.pagination-centered | ||
ul.pagination | ||
== first_page_tag unless current_page.first? | ||
== prev_page_tag unless current_page.first? | ||
- each_page do |page| | ||
- if page.left_outer? || page.right_outer? || page.inside_window? | ||
== page_tag page | ||
- elsif !page.was_truncated? | ||
== gap_tag | ||
== next_page_tag unless current_page.last? | ||
== last_page_tag unless current_page.last? | ||
ul.pagination role="pagination" aria-label=("Pagination" ) | ||
= first_page_tag unless current_page.first? | ||
= prev_page_tag unless current_page.first? | ||
- each_page do |page| | ||
- if page.left_outer? || page.right_outer? || page.inside_window? | ||
= page_tag page | ||
- elsif !page.was_truncated? | ||
= gap_tag | ||
= next_page_tag unless current_page.last? | ||
= last_page_tag unless current_page.last? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
li | ||
= link_to_unless(current_page.first?, | ||
raw(t 'views.pagination.previous'), | ||
url, :rel => 'prev', :remote => remote) | ||
= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Pagination theme for [Zurb Foundation](http://foundation.zurb.com) | ||
|
||
With support for: | ||
|
||
- erb | ||
- haml |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
li | ||
= link_to_unless(current_page.first?, | ||
raw(t 'views.pagination.first'), url, :remote => remote) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<li class="unavailable"> | ||
<%= link_to raw(t 'views.pagination.truncate'), '#' %> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
%li.unavailable | ||
= link_to raw(t 'views.pagination.truncate'), '#' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
li.unavailable | ||
= link_to raw(t 'views.pagination.truncate'), '#' |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
li | ||
= link_to_unless(current_page.last?, | ||
raw(t 'views.pagination.last'), url, { :remote => remote }) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
li | ||
= link_to_unless(current_page.last?, | ||
raw(t 'views.pagination.next'), | ||
url, :rel => 'next', :remote => remote) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<li class="<%= 'current' if page.current? %>"> | ||
<%= link_to page, page.current? ? '#' : url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
%li{class: "#{'current' if page.current?}"} | ||
= link_to page, page.current? ? '#' : url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
li{class="#{'current' if page.current?}"} | ||
= link_to(page, page.current? ? '#' : url, | ||
{ :remote => remote, | ||
:rel => page.next? ? 'next' : page.prev? ? 'prev' : nil }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<%= paginator.render do -%> | ||
<div class="pagination-centered"> | ||
<ul class="pagination"> | ||
<%= first_page_tag unless current_page.first? %> | ||
<%= prev_page_tag unless current_page.first? %> | ||
<% each_page do |page| -%> | ||
<% if page.left_outer? || page.right_outer? || page.inside_window? -%> | ||
<%= page_tag page %> | ||
<% elsif !page.was_truncated? -%> | ||
<%= gap_tag %> | ||
<% end -%> | ||
<% end -%> | ||
<%= next_page_tag unless current_page.last? %> | ||
<%= last_page_tag unless current_page.last? %> | ||
</ul> | ||
</div> | ||
<% end -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
= paginator.render do | ||
.pagination-centered | ||
%ul.pagination | ||
= first_page_tag unless current_page.first? | ||
= prev_page_tag unless current_page.first? | ||
- each_page do |page| | ||
- if page.left_outer? || page.right_outer? || page.inside_window? | ||
= page_tag page | ||
- elsif !page.was_truncated? | ||
= gap_tag | ||
= next_page_tag unless current_page.last? | ||
= last_page_tag unless current_page.last? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
= paginator.render do | ||
.pagination-centered | ||
ul.pagination | ||
== first_page_tag unless current_page.first? | ||
== prev_page_tag unless current_page.first? | ||
- each_page do |page| | ||
- if page.left_outer? || page.right_outer? || page.inside_window? | ||
== page_tag page | ||
- elsif !page.was_truncated? | ||
== gap_tag | ||
== next_page_tag unless current_page.last? | ||
== last_page_tag unless current_page.last? |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
li | ||
= link_to_unless(current_page.first?, | ||
raw(t 'views.pagination.previous'), | ||
url, :rel => 'prev', :remote => remote) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.