mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-02 19:10:16 +01:00
get edit a todo to pass
This commit is contained in:
parent
d7aebf03a0
commit
28b7df87a8
6 changed files with 14 additions and 6 deletions
|
|
@ -685,7 +685,14 @@ class TodosController < ApplicationController
|
|||
@down_count = @count = @not_done_todos.size
|
||||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.html do
|
||||
init_not_done_counts
|
||||
@active_projects = current_user.projects.active
|
||||
@active_contexts = current_user.contexts.active
|
||||
@hidden_projects = current_user.projects.hidden
|
||||
@hidden_contexts = current_user.contexts.hidden
|
||||
@completed_projects = current_user.projects.completed
|
||||
end
|
||||
format.m { render :action => 'mobile_list_deferred' }
|
||||
format.xml { render :xml => @not_done_todos.to_xml( *to_xml_params ) }
|
||||
end
|
||||
|
|
|
|||
|
|
@ -192,7 +192,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def sidebar_html_for_titled_list (list, title)
|
||||
return content_tag(:h3, title+" (#{list.length})") + content_tag(:ul, sidebar_html_for_list(list))
|
||||
return content_tag(:h3, title+" (#{list.size})") + content_tag(:ul, sidebar_html_for_list(list))
|
||||
end
|
||||
|
||||
def sidebar_html_for_list(list)
|
||||
|
|
|
|||
|
|
@ -9,5 +9,5 @@
|
|||
</div>
|
||||
<div id="input_box">
|
||||
<%= render :partial => "shared/add_new_item_form" %>
|
||||
<%= render :file => "sidebar/sidebar.html.erb" %>
|
||||
<%= render :file => "sidebar/sidebar" %>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue