Sha256: a8a6e8de98139170f21234648339e4c2b7e842ec7ca53b1e8d7ed1a89a7541e6
Contents?: true
Size: 883 Bytes
Versions: 13
Compression:
Stored size: 883 Bytes
Contents
- p_prev = current_page.brethren_previous - p_next = current_page.brethren_next - b_prev = (defined?(label_previous) && label_previous) || nav_prev_next_label_prev - b_next = (defined?(label_next) && label_next) || nav_prev_next_label_next %div{:class => (defined?(klass) && klass) || nav_prev_next_class} - if p_prev.nil? %span= b_prev - else = link_to b_prev, p_prev - if p_next.nil? %span= b_next - else = link_to b_next, p_next -# This partial renders a div with two spans that are suitable for use as previous and next buttons when properly styled. - You probably need a class in order to render this properly. - :klass - pass in this local to specify a class for the containing div. - :label_previous - the label for the Previous button. Default is "Previous". - :label_next - the label for the Next button. Default is "Next".
Version data entries
13 entries across 12 versions & 2 rubygems