Sha256: b8700381cad353de39c9111b5586eca25f02c7df1c27ea6410bbd4e26d29efa5
Contents?: true
Size: 1.35 KB
Versions: 17
Compression:
Stored size: 1.35 KB
Contents
<% previous_offset = [0, pagination[:offset].pred].max next_offset = [pagination[:total], pagination[:offset].next].min record_number = pagination[:record_number] %> <ul class='pagination'> <li> <%= link_to(view_slice_job_path(error_type: error_type, offset: 0, record_number: record_number), class: "btn btn-default #{page_nav_disabled_class(pagination[:offset], 0)}", title: 'First') do %> <i class='fas fa-angle-double-left'></i> <% end %> </li> <li> <%= link_to(view_slice_job_path(error_type: error_type, offset: previous_offset, record_number: record_number), class: "btn btn-default #{page_nav_disabled_class(pagination[:offset], 0)}", title: 'Previous') do %> <i class='fas fa-angle-left'></i> <% end %> </li> <li> <%= link_to(view_slice_job_path(error_type: error_type, offset: next_offset, record_number: record_number), class: "btn btn-default #{page_nav_disabled_class(pagination[:offset], pagination[:total])}", title: 'Next') do %> <i class='fas fa-angle-right'></i> <% end %> </li> <li> <%= link_to(view_slice_job_path(error_type: error_type, offset: pagination[:total], record_number: record_number), class: "btn btn-default #{page_nav_disabled_class(pagination[:offset], pagination[:total])}", title: 'Last') do %> <i class='fas fa-angle-double-right'></i> <% end %> </li> </ul>
Version data entries
17 entries across 17 versions & 1 rubygems