Sha256: 5343f66ed40d34091025d412a49f914a586f85d7e119d359b731b81077c21cbf

Contents?: true

Size: 1.16 KB

Versions: 3

Compression:

Stored size: 1.16 KB

Contents

<%= paginator.render do -%>
	<div class="row">
		<div class="col-xs-12">
			<div class="dataTables_paginate paging_simple_numbers">
				<ul class="pagination">
					<%= first_page_tag unless current_page.first? %>
					<%= prev_page_tag unless current_page.first? %>
					<% each_page do |page| -%>
						<% if page.left_outer? || page.right_outer? || page.inside_window? -%>
							<%= page_tag page %>
						<% elsif !page.was_truncated? -%>
							<%= gap_tag %>
						<% end -%>
					<% end -%>
					<%= next_page_tag unless current_page.last? %>
					<%= last_page_tag unless current_page.last? %>
				</ul>
			</div>
		</div>
		<div class="col-xs-12">
			<div class="pagination pull-left">
				<% if @options[:current_page].number < 2 %>
					<% inicio = 1 %>
				<% else %>
					<% inicio = ((@options[:current_page].number - 1) * @options[:per_page]) + 1 %>
				<% end %>
				<% if @options[:current_page].last? %>
					<% fim = @options[:total_count] %>
				<% else %>
					<% fim = @options[:current_page].number * @options[:per_page] %>
				<% end %>
				Exibindo <%= inicio %> - <%= fim %> de um total de <%= @options[:total_count] %>
			</div>
		</div>
	</div>
<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
templus_models-1.5.15 app/views/kaminari/templus/_paginator.html.erb
templus_models-1.5.14 app/views/kaminari/templus/_paginator.html.erb
templus_models-1.5.13 app/views/kaminari/templus/_paginator.html.erb