Sha256: 52a891e224459bfd2e582e76d2b645451511c9a88188d636aecf9a9f3225fe81

Contents?: true

Size: 1.17 KB

Versions: 3

Compression:

Stored size: 1.17 KB

Contents

<%= paginator.render do -%>
	<div class="row">
		<div class="col-xs-12 col-md-4">
			<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 class="col-xs-12 col-md-8">
			<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>
<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
templus_models-1.6.9 app/views/kaminari/templus/_paginator.html.erb
templus_models-1.6.8 app/views/kaminari/templus/_paginator.html.erb
templus_models-1.6.7 app/views/kaminari/templus/_paginator.html.erb