Sha256: 5b9c7c17cd0f1f9819e1e46f68ad205d7ae9b1cf0239baaa54763679a0a9e8d8

Contents?: true

Size: 1.18 KB

Versions: 4

Compression:

Stored size: 1.18 KB

Contents

<%
  previous_offset = [0, pagination[:offset].pred].max
  next_offset     = [pagination[:total], pagination[:offset].next].min
%>
<ul class="pagination">
  <li>
    <%= link_to(exception_job_path(error_type: error_type, offset: 0), class: "btn btn-default #{page_nav_disabled_class(pagination[:offset], 0)}", title: 'First') do %>
      <i class="fa fa-angle-double-left"></i>
    <% end %>
  </li>
  <li>
    <%= link_to(exception_job_path(error_type: error_type, offset: previous_offset), class: "btn btn-default #{page_nav_disabled_class(pagination[:offset], 0)}", title: 'Previous') do %>
      <i class="fa fa-angle-left"></i>
    <% end %>
  </li>
  <li>
    <%= link_to(exception_job_path(error_type: error_type, offset: next_offset), class: "btn btn-default #{page_nav_disabled_class(pagination[:offset], pagination[:total])}", title: 'Next') do %>
      <i class="fa fa-angle-right"></i>
    <% end %>
  </li>
  <li>
    <%= link_to(exception_job_path(error_type: error_type, offset: pagination[:total]), class: "btn btn-default #{page_nav_disabled_class(pagination[:offset], pagination[:total])}", title: 'Last') do %>
      <i class="fa fa-angle-double-right"></i>
    <% end %>
  </li>
</ul>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rocketjob_mission_control-3.0.3 app/views/rocket_job_mission_control/jobs/_pagination.html.erb
rocketjob_mission_control-3.0.2 app/views/rocket_job_mission_control/jobs/_pagination.html.erb
rocketjob_mission_control-3.0.1 app/views/rocket_job_mission_control/jobs/_pagination.html.erb
rocketjob_mission_control-3.0.0 app/views/rocket_job_mission_control/jobs/_pagination.html.erb