mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-28 19:56:11 +01:00
24 lines
No EOL
766 B
Text
24 lines
No EOL
766 B
Text
<%
|
|
paginate_options = {
|
|
class: 'pagination pagination-small',
|
|
previous_label: '« '+ t('common.previous'),
|
|
next_label: t('common.next')+' »',
|
|
inner_window: 2,
|
|
renderer: BootstrapPagination::Rails
|
|
}
|
|
%>
|
|
<div class="paginate_header">
|
|
<%= will_paginate @done, paginate_options %>
|
|
</div>
|
|
|
|
<h2><%= t('todos.all_completed') %></h2>
|
|
|
|
<% if @done.empty? -%>
|
|
<div class="message">
|
|
<p><%= t('todos.no_completed_actions') %></p>
|
|
</div>
|
|
<% else -%>
|
|
<%= render :partial => "todos/todo", :collection => @done, :locals => { :parent_container_type => "completed", :suppress_context => false, :suppress_project => false } %>
|
|
<% end -%>
|
|
|
|
<div class="paginate_footer"><%= will_paginate @done, paginate_options %></div> |