- def bootstrap_page_item(body, url = nil)
- if url
- content_tag "li", :class => "page-item" do
- link_to body, url, :class => "page-link"
- end
- else
- content_tag "li", :class => "page-item disabled" do
- content_tag "a", body, :class => "page-link"
- end
+ def bootstrap_page_item_disabled(body)
+ content_tag "li", :class => "page-item disabled" do
+ content_tag "span", body, :class => "page-link"
+ end
+ end
+
+ def bootstrap_page_item_active(body)
+ content_tag "li", :class => "page-item active", :'aria-current' => "page" do
+ content_tag "span", body, :class => "page-link"
+ end
+ end
+
+ def bootstrap_page_item_link(body, url)
+ content_tag "li", :class => "page-item" do
+ link_to body, url, :class => "page-link"