Sha256: 19734973c44a71dfb7b96d3495a13dd39478824b0b7fe96d3143ef747084d915
Contents?: true
Size: 996 Bytes
Versions: 33
Compression:
Stored size: 996 Bytes
Contents
<!-- A wrapper around the `will_paginate` helper. All [options to `will_paginate`](https://github.com/mislav/will_paginate/wiki/the-will_paginate-view-helper) are available as attributes. If you do not specify `params`, it will be guessed. Standard Ajax form attributes are also supported. See the `<a/>` tag for more information on using AJAX with links. --> <def tag="page-nav"> <% ajax_attrs, attributes = attributes.partition_hash(HoboRapidHelper::AJAX_ATTRS) %> <%= will_paginate this, attributes.symbolize_keys.reverse_merge( :inner_window => 2, :previous_label => translate("hobo.actions.previous", :default=>"« Prev"), :next_label =>translate("hobo.actions.next", :default=>"Next »"), :params => recognize_page_path.slice(:controller,:action,:id), :extra_attributes => (ajax_attrs.empty? ? {} : {"data-rapid" => {"a" => {"ajax_attrs" => ajax_attrs}}.to_json}), :ignore_params => [:render, :render_options, :"_"]) %> </def>
Version data entries
33 entries across 33 versions & 1 rubygems