Sha256: 0dd1dda4a31da18fd1d9cf23397656799d1123756684baa9789e16d109fc27c9
Contents?: true
Size: 1017 Bytes
Versions: 11
Compression:
Stored size: 1017 Bytes
Contents
- previous_offset = [0, pagination[:offset].pred].max - next_offset = [pagination[:total], pagination[:offset].next].min %ul.pagination %li = link_to(job_failures_path(error_type: error_type, offset: 0), class: "btn btn-default #{page_nav_disabled_class(pagination[:offset], 0)}", title: 'First') do %i.fa.fa-angle-double-left %li = link_to(job_failures_path(error_type: error_type, offset: previous_offset), class: "btn btn-default #{page_nav_disabled_class(pagination[:offset], 0)}", title: 'Previous') do %i.fa.fa-angle-left %li = link_to(job_failures_path(error_type: error_type, offset: next_offset), class: "btn btn-default #{page_nav_disabled_class(pagination[:offset], pagination[:total])}", title: 'Next') do %i.fa.fa-angle-right %li = link_to(job_failures_path(error_type: error_type, offset: pagination[:total]), class: "btn btn-default #{page_nav_disabled_class(pagination[:offset], pagination[:total])}", title: 'Last') do %i.fa.fa-angle-double-right
Version data entries
11 entries across 11 versions & 1 rubygems