diff --git a/bulma/README.md b/bulma/README.md index 1c1b041..311ef75 100644 --- a/bulma/README.md +++ b/bulma/README.md @@ -1,7 +1 @@ # Pagination for [Bulma](http://bulma.io/documentation/components/pagination/) - -With support for: - -- erb -- haml -- slim diff --git a/bulma/app/views/kaminari/_first_page.html.haml b/bulma/app/views/kaminari/_first_page.html.haml deleted file mode 100644 index c74ba39..0000000 --- a/bulma/app/views/kaminari/_first_page.html.haml +++ /dev/null @@ -1,9 +0,0 @@ --# Link to the "First" page --# - available local variables --# url : url to the first page --# current_page : a page object for the currently displayed page --# total_pages : total number of pages --# per_page : number of items to fetch per page --# remote : data-remote -%li - = link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, remote: remote, class: "pagination-link#{' is-current' if current_page.first?}" diff --git a/bulma/app/views/kaminari/_first_page.html.slim b/bulma/app/views/kaminari/_first_page.html.slim deleted file mode 100644 index e5e075a..0000000 --- a/bulma/app/views/kaminari/_first_page.html.slim +++ /dev/null @@ -1,9 +0,0 @@ -/ Link to the "First" page - - available local variables - url : url to the first page - current_page : a page object for the currently displayed page - total_pages : total number of pages - per_page : number of items to fetch per page - remote : data-remote -li - == link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, remote: remote, class: "pagination-link#{' is-current' if current_page.first?}" diff --git a/bulma/app/views/kaminari/_gap.html.haml b/bulma/app/views/kaminari/_gap.html.haml deleted file mode 100644 index cd9e80a..0000000 --- a/bulma/app/views/kaminari/_gap.html.haml +++ /dev/null @@ -1,9 +0,0 @@ --# Non-link tag that stands for skipped pages... --# - available local variables --# current_page : a page object for the currently displayed page --# total_pages : total number of pages --# per_page : number of items to fetch per page --# remote : data-remote -%li - %span.pagination-ellipsis - = t('views.pagination.truncate').html_safe diff --git a/bulma/app/views/kaminari/_gap.html.slim b/bulma/app/views/kaminari/_gap.html.slim deleted file mode 100644 index f94de2d..0000000 --- a/bulma/app/views/kaminari/_gap.html.slim +++ /dev/null @@ -1,9 +0,0 @@ -/ Non-link tag that stands for skipped pages... - - available local variables - current_page : a page object for the currently displayed page - total_pages : total number of pages - per_page : number of items to fetch per page - remote : data-remote -li - span.pagination-ellipsis - == t('views.pagination.truncate').html_safe diff --git a/bulma/app/views/kaminari/_last_page.html.haml b/bulma/app/views/kaminari/_last_page.html.haml deleted file mode 100644 index d68297d..0000000 --- a/bulma/app/views/kaminari/_last_page.html.haml +++ /dev/null @@ -1,9 +0,0 @@ --# Link to the "Last" page --# - available local variables --# url : url to the last page --# current_page : a page object for the currently displayed page --# total_pages : total number of pages --# per_page : number of items to fetch per page --# remote : data-remote -%li - = link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, remote: remote, class: "pagination-link#{' is-current' if current_page.last?}" diff --git a/bulma/app/views/kaminari/_last_page.html.slim b/bulma/app/views/kaminari/_last_page.html.slim deleted file mode 100644 index 26ff29c..0000000 --- a/bulma/app/views/kaminari/_last_page.html.slim +++ /dev/null @@ -1,9 +0,0 @@ -/ Link to the "Last" page - - available local variables - url : url to the last page - current_page : a page object for the currently displayed page - total_pages : total number of pages - per_page : number of items to fetch per page - remote : data-remote -li - == link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, remote: remote, class: "pagination-link#{' is-current' if current_page.last?}" diff --git a/bulma/app/views/kaminari/_next_page.html.haml b/bulma/app/views/kaminari/_next_page.html.haml deleted file mode 100644 index 3e35ced..0000000 --- a/bulma/app/views/kaminari/_next_page.html.haml +++ /dev/null @@ -1,8 +0,0 @@ --# Link to the "Next" page --# - available local variables --# url : url to the next page --# current_page : a page object for the currently displayed page --# total_pages : total number of pages --# per_page : number of items to fetch per page --# remote : data-remote -= link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, rel: 'next', remote: remote, class: 'pagination-next' diff --git a/bulma/app/views/kaminari/_next_page.html.slim b/bulma/app/views/kaminari/_next_page.html.slim deleted file mode 100644 index 5a323ea..0000000 --- a/bulma/app/views/kaminari/_next_page.html.slim +++ /dev/null @@ -1,8 +0,0 @@ -/ Link to the "Next" page - - available local variables - url : url to the next page - current_page : a page object for the currently displayed page - total_pages : total number of pages - per_page : number of items to fetch per page - remote : data-remote -== link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, rel: 'next', remote: remote, class: 'pagination-next' diff --git a/bulma/app/views/kaminari/_page.html.haml b/bulma/app/views/kaminari/_page.html.haml deleted file mode 100644 index dc414af..0000000 --- a/bulma/app/views/kaminari/_page.html.haml +++ /dev/null @@ -1,10 +0,0 @@ --# Link showing page number --# - available local variables --# page : a page object for "this" page --# url : url to this page --# current_page : a page object for the currently displayed page --# total_pages : total number of pages --# per_page : number of items to fetch per page --# remote : data-remote -%li - = link_to page, url, {remote: remote, rel: page.rel, class: "pagination-link#{' is-current' if page.current?}"} diff --git a/bulma/app/views/kaminari/_page.html.slim b/bulma/app/views/kaminari/_page.html.slim deleted file mode 100644 index 48d53d9..0000000 --- a/bulma/app/views/kaminari/_page.html.slim +++ /dev/null @@ -1,10 +0,0 @@ -/ Link showing page number - - available local variables - page : a page object for "this" page - url : url to this page - current_page : a page object for the currently displayed page - total_pages : total number of pages - per_page : number of items to fetch per page - remote : data-remote -li - == link_to page, url, {remote: remote, rel: page.rel, class: "pagination-link#{' is-current' if page.current?}"} diff --git a/bulma/app/views/kaminari/_paginator.html.haml b/bulma/app/views/kaminari/_paginator.html.haml deleted file mode 100644 index 6c54433..0000000 --- a/bulma/app/views/kaminari/_paginator.html.haml +++ /dev/null @@ -1,20 +0,0 @@ --# The container tag --# - available local variables --# current_page : a page object for the currently displayed page --# total_pages : total number of pages --# per_page : number of items to fetch per page --# remote : data-remote --# paginator : the paginator that renders the pagination tags inside - -= paginator.render do - %nav.pagination - = prev_page_tag unless current_page.first? - = next_page_tag unless current_page.last? - %ul.pagination-list - = first_page_tag unless current_page.first? - - each_page do |page| - - if page.display_tag? - = page_tag page - - elsif !page.was_truncated? - = gap_tag - = last_page_tag unless current_page.last? diff --git a/bulma/app/views/kaminari/_paginator.html.slim b/bulma/app/views/kaminari/_paginator.html.slim deleted file mode 100644 index 9352ddb..0000000 --- a/bulma/app/views/kaminari/_paginator.html.slim +++ /dev/null @@ -1,20 +0,0 @@ -/ The container tag - - available local variables - current_page : a page object for the currently displayed page - total_pages : total number of pages - per_page : number of items to fetch per page - remote : data-remote - paginator : the paginator that renders the pagination tags inside - -== paginator.render do - nav.pagination - == prev_page_tag unless current_page.first? - == next_page_tag unless current_page.last? - ul.pagination-list - == first_page_tag unless current_page.first? - - each_page do |page| - - if page.display_tag? - == page_tag page - - elsif !page.was_truncated? - == gap_tag - == last_page_tag unless current_page.last? diff --git a/bulma/app/views/kaminari/_prev_page.html.haml b/bulma/app/views/kaminari/_prev_page.html.haml deleted file mode 100644 index 35b8fb0..0000000 --- a/bulma/app/views/kaminari/_prev_page.html.haml +++ /dev/null @@ -1,8 +0,0 @@ --# Link to the "Previous" page --# - available local variables --# url : url to the previous page --# current_page : a page object for the currently displayed page --# total_pages : total number of pages --# per_page : number of items to fetch per page --# remote : data-remote -= link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, rel: 'prev', remote: remote, class: 'pagination-previous' diff --git a/bulma/app/views/kaminari/_prev_page.html.slim b/bulma/app/views/kaminari/_prev_page.html.slim deleted file mode 100644 index 16c2ec8..0000000 --- a/bulma/app/views/kaminari/_prev_page.html.slim +++ /dev/null @@ -1,8 +0,0 @@ -/ Link to the "Previous" page - - available local variables - url : url to the previous page - current_page : a page object for the currently displayed page - total_pages : total number of pages - per_page : number of items to fetch per page - remote : data-remote -== link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, rel: 'prev', remote: remote, class: 'pagination-previous'