mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-29 05:18:49 +01:00
31 lines
1.4 KiB
Text
31 lines
1.4 KiB
Text
<div id="display_box_projects">
|
|
<div class="container">
|
|
<h2><%= t('todos.completed_today') %></h2>
|
|
<% if @done_today.empty? -%>
|
|
<div class="message"><p><%= t('todos.no_completed_actions') %></p></div>
|
|
<% else -%>
|
|
<%= render :partial => "todos/todo", :collection => @done_today, :locals => { :parent_container_type => "completed", :suppress_context => false, :suppress_project => false } %>
|
|
<% end -%>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<h2><%= t('todos.completed_rest_of_week') %></h2>
|
|
<% if @done_this_week.empty? -%>
|
|
<div class="message"><p><%= t('todos.no_completed_actions') %></p></div>
|
|
<% else -%>
|
|
<%= render :partial => "todos/todo", :collection => @done_this_week, :locals => { :parent_container_type => "completed", :suppress_context => false, :suppress_project => false } %>
|
|
<% end -%>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<h2><%= t('todos.completed_rest_of_month') %></h2>
|
|
<% if @done_this_month.empty? -%>
|
|
<div class="message"><p><%= t('todos.no_completed_actions') %></p></div>
|
|
<% else -%>
|
|
<%= render :partial => "todos/todo", :collection => @done_this_month, :locals => { :parent_container_type => "completed", :suppress_context => false, :suppress_project => false } %>
|
|
<% end -%>
|
|
</div>
|
|
|
|
<p>You can see all completed actions <%= link_to "here", determine_all_done_path %></p>
|
|
|
|
</div><!-- End of display_box -->
|