public
Description: Tracks is a GTD(TM) web application, built with Ruby on Rails
Homepage: http://www.rousette.org.uk/projects/
Clone URL: git://github.com/bsag/tracks.git
Click here to lend your support to: tracks and make a donation at www.pledgie.com !
add recurring todos to tracks
lrbalt (author)
Sat Jul 19 11:27:45 -0700 2008
commit  8bc41e2cb05217b103de28c2cba9741f6e226a5b
tree    20f1028c7bb120f89d43d1b76c9fa925ac449472
parent  c46f0a8e0424ca7bb98998972363aae1e037dd26
0
...
20
21
22
23
24
 
...
20
21
22
 
23
24
0
@@ -20,4 +20,4 @@ For those upgrading, change notes are available in /doc/CHANGELOG. If you are th
0
 
0
 While fully usable for everyday use, Tracks is still a work in progress. Make sure that you take sensible precautions and back up all your data frequently, taking particular care when you are upgrading.
0
 
0
-Enjoy being productive!
0
\ No newline at end of file
0
+Enjoy being productive!
...
1
2
 
 
 
3
4
5
...
47
48
49
50
51
52
 
 
 
53
54
 
 
55
56
57
...
80
81
82
83
84
 
 
85
86
 
87
88
89
...
105
106
107
108
109
110
 
 
 
111
112
113
...
118
119
120
121
122
123
124
 
 
 
 
125
126
127
...
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
 
 
 
 
 
 
 
 
 
 
 
 
 
148
149
150
...
220
221
222
223
224
225
 
 
 
226
227
228
...
231
232
233
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
234
235
...
 
 
1
2
3
4
5
6
...
48
49
50
 
 
 
51
52
53
54
 
55
56
57
58
59
...
82
83
84
 
 
85
86
87
 
88
89
90
91
...
107
108
109
 
 
 
110
111
112
113
114
115
...
120
121
122
 
 
 
 
123
124
125
126
127
128
129
...
132
133
134
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
...
220
221
222
 
 
 
223
224
225
226
227
228
...
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
0
@@ -1,5 +1,6 @@
0
-# The filters added to this controller will be run for all controllers in the application.
0
-# Likewise will all the methods added be available for all controllers.
0
+# The filters added to this controller will be run for all controllers in the
0
+# application. Likewise will all the methods added be available for all
0
+# controllers.
0
 
0
 require_dependency "login_system"
0
 require_dependency "tracks/source_view"
0
@@ -47,11 +48,12 @@ class ApplicationController < ActionController::Base
0
     # http://wiki.rubyonrails.com/rails/show/HowtoChangeSessionOptions
0
     unless session == nil
0
       return if @controller_name == 'feed' or session['noexpiry'] == "on"
0
-      # If the method is called by the feed controller (which we don't have under session control)
0
-      # or if we checked the box to keep logged in on login
0
-      # don't set the session expiry time.
0
+      # If the method is called by the feed controller (which we don't have
0
+      # under session control) or if we checked the box to keep logged in on
0
+      # login don't set the session expiry time.
0
       if session
0
-        # Get expiry time (allow ten seconds window for the case where we have none)
0
+        # Get expiry time (allow ten seconds window for the case where we have
0
+        # none)
0
         expiry_time = session['expiry_time'] || Time.now + 10
0
         if expiry_time < Time.now
0
           # Too late, matey...  bang goes your session!
0
@@ -80,10 +82,10 @@ class ApplicationController < ActionController::Base
0
   #   end
0
   # end
0
   
0
-  # Returns a count of next actions in the given context or project
0
-  # The result is count and a string descriptor, correctly pluralised if there are no
0
+  # Returns a count of next actions in the given context or project The result
0
+  # is count and a string descriptor, correctly pluralised if there are no
0
   # actions or multiple actions
0
-  #
0
+  # 
0
   def count_undone_todos_phrase(todos_parent, string="actions")
0
     count = count_undone_todos(todos_parent)
0
     if count == 1
0
@@ -105,9 +107,9 @@ class ApplicationController < ActionController::Base
0
     count || 0
0
   end
0
 
0
-  # Convert a date object to the format specified in the user's preferences
0
-  # in config/settings.yml
0
-  #  
0
+  # Convert a date object to the format specified in the user's preferences in
0
+  # config/settings.yml
0
+  # 
0
   def format_date(date)
0
     if date
0
       date_format = prefs.date_format
0
@@ -118,10 +120,10 @@ class ApplicationController < ActionController::Base
0
     formatted_date
0
   end
0
 
0
-  # Uses RedCloth to transform text using either Textile or Markdown
0
-  # Need to require redcloth above
0
-  # RedCloth 3.0 or greater is needed to use Markdown, otherwise it only handles Textile
0
-  #
0
+  # Uses RedCloth to transform text using either Textile or Markdown Need to
0
+  # require redcloth above RedCloth 3.0 or greater is needed to use Markdown,
0
+  # otherwise it only handles Textile
0
+  # 
0
   def markdown(text)
0
     RedCloth.new(text).to_html
0
   end
0
@@ -130,21 +132,19 @@ class ApplicationController < ActionController::Base
0
     Hash[*projects.reject{ |p| p.default_context.nil? }.map{ |p| [p.name, p.default_context.name] }.flatten].to_json 
0
   end
0
   
0
-  # Here's the concept behind this "mobile content negotiation" hack:
0
-  # In addition to the main, AJAXy Web UI, Tracks has a lightweight
0
-  # low-feature 'mobile' version designed to be suitablef or use
0
-  # from a phone or PDA. It makes some sense that tne pages of that
0
-  # mobile version are simply alternate representations of the same
0
-  # Todo resources. The implementation goal was to treat mobile
0
-  # as another format and be able to use respond_to to render both
0
-  # versions. Unfortunately, I ran into a lot of trouble simply
0
-  # registering a new mime type 'text/html' with format :m because
0
-  # :html already is linked to that mime type and the new
0
-  # registration was forcing all html requests to be rendered in
0
-  # the mobile view. The before_filter and after_filter hackery
0
-  # below accomplishs that implementation goal by using a 'fake'
0
-  # mime type during the processing and then setting it to 
0
-  # 'text/html' in an 'after_filter' -LKM 2007-04-01
0
+  # Here's the concept behind this "mobile content negotiation" hack: In
0
+  # addition to the main, AJAXy Web UI, Tracks has a lightweight low-feature
0
+  # 'mobile' version designed to be suitablef or use from a phone or PDA. It
0
+  # makes some sense that tne pages of that mobile version are simply alternate
0
+  # representations of the same Todo resources. The implementation goal was to
0
+  # treat mobile as another format and be able to use respond_to to render both
0
+  # versions. Unfortunately, I ran into a lot of trouble simply registering a
0
+  # new mime type 'text/html' with format :m because :html already is linked to
0
+  # that mime type and the new registration was forcing all html requests to be
0
+  # rendered in the mobile view. The before_filter and after_filter hackery
0
+  # below accomplishs that implementation goal by using a 'fake' mime type
0
+  # during the processing and then setting it to 'text/html' in an
0
+  # 'after_filter' -LKM 2007-04-01
0
   def mobile?
0
     return params[:format] == 'm' || response.content_type == MOBILE_CONTENT_TYPE
0
   end
0
@@ -220,9 +220,9 @@ class ApplicationController < ActionController::Base
0
     end
0
   end  
0
   
0
-  # Set the contents of the flash message from a controller
0
-  # Usage: notify :warning, "This is the message"
0
-  # Sets the flash of type 'warning' to "This is the message"
0
+  # Set the contents of the flash message from a controller Usage: notify
0
+  # :warning, "This is the message" Sets the flash of type 'warning' to "This is
0
+  # the message"
0
   def notify(type, message)
0
     flash[type] = message
0
     logger.error("ERROR: #{message}") if type == :error
0
@@ -231,5 +231,29 @@ class ApplicationController < ActionController::Base
0
   def set_time_zone
0
     Time.zone = current_user.prefs.time_zone if logged_in?
0
   end
0
+
0
+  def create_todo_from_recurring_todo(rt, date=nil)
0
+    # create todo and initialize with data from recurring_todo rt
0
+    todo = current_user.todos.build( { :description => rt.description, :notes => rt.notes, :project_id => rt.project_id, :context_id => rt.context_id})
0
+    
0
+    # set dates
0
+    todo.due = rt.get_due_date(date)
0
+    todo.show_from = rt.get_show_from_date(date)
0
+    todo.recurring_todo_id = rt.id
0
+    saved = todo.save
0
+    if saved
0
+      todo.tag_with(rt.tag_list, current_user)
0
+      todo.tags.reload 
0
+    end
0
+
0
+    # increate number of occurences created from recurring todo
0
+    rt.inc_occurences
0
+    
0
+    # mark recurring todo complete if there are no next actions left
0
+    checkdate = todo.due.nil? ? todo.show_from : todo.due
0
+    rt.toggle_completion! unless rt.has_next_todo(checkdate)
0
+    
0
+    return saved ? todo : nil
0
+  end
0
   
0
 end
...
121
122
123
 
 
 
 
124
125
126
...
235
236
237
 
 
 
 
238
239
240
...
643
644
645
 
 
 
 
 
 
 
 
 
 
 
 
 
646
647
648
...
711
712
713
714
 
715
716
...
121
122
123
124
125
126
127
128
129
130
...
239
240
241
242
243
244
245
246
247
248
...
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
...
732
733
734
 
735
736
737
0
@@ -121,6 +121,10 @@ class TodosController < ApplicationController
0
   # 
0
   def toggle_check
0
     @saved = @todo.toggle_completion!
0
+    
0
+    # check if this todo has a related recurring_todo. If so, create next todo
0
+    check_for_next_todo if @saved
0
+    
0
     respond_to do |format|
0
       format.js do
0
         if @saved
0
@@ -235,6 +239,10 @@ class TodosController < ApplicationController
0
     @todo = get_todo_from_params
0
     @context_id = @todo.context_id
0
     @project_id = @todo.project_id
0
+
0
+    # check if this todo has a related recurring_todo. If so, create next todo
0
+    check_for_next_todo
0
+    
0
     @saved = @todo.destroy
0
     
0
     respond_to do |format|
0
@@ -643,6 +651,19 @@ class TodosController < ApplicationController
0
   def self.is_feed_request(req)
0
     ['rss','atom','txt','ics'].include?(req.parameters[:format])
0
   end
0
+  
0
+  def check_for_next_todo
0
+    # check if this todo has a related recurring_todo. If so, create next todo
0
+    @new_recurring_todo = nil
0
+    @recurring_todo = nil
0
+    if @todo.from_recurring_todo?
0
+      @recurring_todo = current_user.recurring_todos.find(@todo.recurring_todo_id)
0
+      if @recurring_todo.active? && @recurring_todo.has_next_todo(@todo.due)
0
+        date = @todo.due >= Date.today() ? @todo.due : Date.today()-1.day
0
+        @new_recurring_todo = create_todo_from_recurring_todo(@recurring_todo, date) 
0
+      end
0
+    end 
0
+  end
0
 
0
   class FindConditionBuilder
0
 
0
@@ -711,6 +732,6 @@ class TodosController < ApplicationController
0
       return false if context_name.blank?
0
       true
0
     end
0
-      
0
+          
0
   end
0
 end
...
47
48
49
50
 
51
52
53
...
66
67
68
69
 
70
71
72
...
205
206
207
208
 
209
210
211
 
 
212
213
 
214
215
216
...
272
273
274
275
276
 
 
277
278
279
...
281
282
283
284
285
 
...
47
48
49
 
50
51
52
53
...
66
67
68
 
69
70
71
72
...
205
206
207
 
208
209
 
 
210
211
212
 
213
214
215
216
...
272
273
274
 
 
275
276
277
278
279
...
281
282
283
 
284
285
0
@@ -47,7 +47,7 @@ module TodosHelper
0
       :prevent_default => true
0
   end    
0
 
0
-  def remote_star_icon
0
+  def remote_star_icon 
0
     str = link_to( image_tag_for_star(@todo),
0
       toggle_star_todo_path(@todo),
0
       :class => "icon star_item", :title => "star the action '#{@todo.description}'")
0
@@ -66,7 +66,7 @@ module TodosHelper
0
   
0
   def remote_edit_icon
0
     if !@todo.completed?
0
-      str = link_to( image_tag_for_edit,
0
+      str = link_to( image_tag_for_edit(@todo),
0
         edit_todo_path(@todo),
0
         :class => "icon edit_icon")
0
       set_behavior_for_edit_icon
0
@@ -205,12 +205,12 @@ module TodosHelper
0
     javascript_tag str
0
   end
0
   
0
-  def item_container_id
0
+  def item_container_id (todo)
0
     if source_view_is :project
0
-      return "p#{@todo.project_id}" if @todo.active?
0
-      return "tickler" if @todo.deferred?
0
+      return "p#{todo.project_id}" if todo.active?
0
+      return "tickler" if todo.deferred?
0
     end
0
-    return "c#{@todo.context_id}"
0
+    return "c#{todo.context_id}"
0
   end
0
 
0
   def should_show_new_item
0
@@ -272,8 +272,8 @@ module TodosHelper
0
     image_tag("blank.png", :title =>"Delete action", :class=>"delete_item")
0
   end
0
   
0
-  def image_tag_for_edit
0
-    image_tag("blank.png", :title =>"Edit action", :class=>"edit_item", :id=> dom_id(@todo, 'edit_icon'))
0
+  def image_tag_for_edit(todo)
0
+    image_tag("blank.png", :title =>"Edit action", :class=>"edit_item", :id=> dom_id(todo, 'edit_icon'))
0
   end
0
   
0
   def image_tag_for_star(todo)
0
@@ -281,4 +281,4 @@ module TodosHelper
0
     image_tag("blank.png", :title =>"Star action", :class => class_str)
0
   end  
0
   
0
-end
0
\ No newline at end of file
0
+end
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 class Tag < ActiveRecord::Base
0
   has_many_polymorphs :taggables,
0
-                      :from => [:todos], 
0
+                      :from => [:todos, :recurring_todos], 
0
                       :through => :taggings,
0
                       :dependent => :destroy
0
 
...
3
4
5
 
6
7
8
...
120
121
122
 
 
 
 
123
124
...
3
4
5
6
7
8
9
...
121
122
123
124
125
126
127
128
129
0
@@ -3,6 +3,7 @@ class Todo < ActiveRecord::Base
0
   belongs_to :context
0
   belongs_to :project
0
   belongs_to :user
0
+  belongs_to :recurring_todo
0
   
0
   STARRED_TAG_NAME = "starred"
0
   
0
@@ -120,4 +121,8 @@ class Todo < ActiveRecord::Base
0
     starred?  
0
   end
0
 
0
+  def from_recurring_todo?
0
+    return self.recurring_todo_id != nil
0
+  end
0
+  
0
 end
0
\ No newline at end of file
...
63
64
65
 
 
 
66
67
68
...
63
64
65
66
67
68
69
70
71
0
@@ -63,6 +63,9 @@ class User < ActiveRecord::Base
0
   has_many :todos,
0
            :order => 'todos.completed_at DESC, todos.created_at DESC',
0
            :dependent => :delete_all
0
+  has_many :recurring_todos,
0
+           :order => 'recurring_todos.completed_at DESC, recurring_todos.created_at DESC',
0
+           :dependent => :delete_all
0
   has_many :deferred_todos,
0
            :class_name => 'Todo',
0
            :conditions => [ 'state = ?', 'deferred' ],
...
18
19
20
 
21
22
23
...
56
57
58
 
59
60
61
...
18
19
20
21
22
23
24
...
57
58
59
60
61
62
63
0
@@ -18,6 +18,7 @@ window.onload=function(){
0
   Nifty("div#todo_new_action_container","normal");
0
   Nifty("div#project_new_project_container","normal");
0
   Nifty("div#context_new_container","normal");
0
+  Nifty("div#recurring_new_container","normal");
0
   if ($('flash').visible()) { new Effect.Fade("flash",{duration:5.0}); }
0
 }
0
 </script>
0
@@ -56,6 +57,7 @@ window.onload=function(){
0
   <% if current_user.is_admin? -%>
0
     <li><%= navigation_link("Admin", users_path, {:accesskey => "a", :title => "Add or delete users"} ) %></li>
0
   <% end -%>
0
+  <li><%= navigation_link(image_tag("recurring_menu16x16.png", :size => "16X16", :border => 0), {:controller => "recurring_todos", :action => "index"}, :title => "Manage recurring actions" ) %></li>
0
   <li><%= navigation_link(image_tag("feed-icon.png", :size => "16X16", :border => 0), {:controller => "feedlist", :action => "index"}, :title => "See a list of available feeds" ) %></li>
0
   <li><%= navigation_link(image_tag("menustar.gif", :size => "16X16", :border => 0), tag_path("starred"), :title => "See your starred actions" ) %></li>
0
   <li><%= navigation_link(image_tag("stats.gif", :size => "16X16", :border => 0), {:controller => "stats", :action => "index"}, :title => "See your statistics" ) %></li>
...
13
14
15
 
16
17
18
...
13
14
15
16
17
18
19
0
@@ -13,6 +13,7 @@
0
     <div class="description<%= staleness_class( todo ) %>">
0
       <%= date_span -%>
0
       <span class="todo.descr"><%= h sanitize(todo.description) %></span>
0
+      <%= link_to(image_tag("recurring16x16.png"), {:controller => "recurring_todos", :action => "index"}, :class => "recurring_icon") if @todo.from_recurring_todo? %>
0
       <%= tag_list %>
0
       <%= deferred_due_date %>
0
       <%= project_and_context_links( parent_container_type, :suppress_context => suppress_context, :suppress_project => suppress_project ) %>
...
15
16
17
18
 
19
20
21
...
15
16
17
 
18
19
20
21
0
@@ -15,7 +15,7 @@ if @saved
0
       page.insert_html :top, 'display_box', :partial => 'contexts/context', :locals => { :context => @todo.context, :collapsible => true }
0
     else
0
       page.call "todoItems.ensureVisibleWithEffectAppear", "c#{@todo.context_id}" if source_view_is_one_of(:todo, :deferred)
0
-      page.insert_html :bottom, item_container_id + 'items', :partial => 'todos/todo', :locals => { :parent_container_type => parent_container_type, :source_view => @source_view }
0
+      page.insert_html :bottom, item_container_id(@todo) + 'items', :partial => 'todos/todo', :locals => { :parent_container_type => parent_container_type, :source_view => @source_view }
0
       page.visual_effect :highlight, dom_id(@todo), :duration => 3
0
       page[empty_container_msg_div_id].hide unless empty_container_msg_div_id.nil?
0
     end
...
1
2
3
4
 
 
 
 
 
5
6
 
 
 
 
 
 
 
 
 
 
7
8
9
10
...
1
2
3
 
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
0
@@ -1,9 +1,23 @@
0
 if @saved
0
   page[@todo].remove
0
   page['badge_count'].replace_html @down_count
0
-  page.visual_effect :fade, item_container_id, :duration => 0.4 if source_view_is_one_of(:todo, :deferred) && @remaining_in_context == 0
0
+  
0
+  # remove context if empty
0
+  page.visual_effect :fade, item_container_id(@todo), :duration => 0.4 if source_view_is_one_of(:todo, :deferred) && @remaining_in_context == 0
0
+  
0
+  # show message if there are no actions
0
   page[empty_container_msg_div_id].show if !empty_container_msg_div_id.nil? && @down_count == 0
0
   page['tickler-empty-nd'].show if source_view_is(:deferred) && @down_count == 0
0
+  
0
+  # show new todo if the completed todo was recurring
0
+  unless @new_recurring_todo.nil?
0
+    page.call "todoItems.ensureVisibleWithEffectAppear", item_container_id(@new_recurring_todo)
0
+    page.insert_html :bottom, item_container_id(@new_recurring_todo), :partial => 'todos/todo', :locals => { :todo => @new_recurring_todo, :parent_container_type => parent_container_type }
0
+    page.visual_effect :highlight, dom_id(@new_recurring_todo, 'line'), {'startcolor' => "'#99ff99'"}      
0
+    page.notify :notice, "Action was deleted. Because this action is recurring, a new action was added", 6.0
0
+  else
0
+    page.notify :notice, "There is no next action after the recurring action you just deleted. The recurrence is completed", 6.0 unless @recurring_todo.nil?
0
+  end
0
 else
0
   page.notify :error, "There was an error deleting the item #{@todo.description}", 8.0
0
 end
0
\ No newline at end of file
...
1
2
3
4
 
 
5
6
7
...
9
10
11
 
 
12
13
 
14
 
 
 
 
 
 
 
 
 
 
15
16
17
 
 
 
18
19
20
21
 
22
23
24
...
1
2
3
 
4
5
6
7
8
...
10
11
12
13
14
15
 
16
17
18
19
20
21
22
23
24
25
26
27
28
 
 
29
30
31
32
33
34
35
36
37
38
39
0
@@ -1,7 +1,8 @@
0
 if @saved  
0
   page[@todo].remove
0
   if @todo.completed?
0
-    # Don't try to insert contents into a non-existent container!
0
+    # completed todos move from their context to the completed container
0
+    
0
     unless @prefs.hide_completed_actions?
0
       page.insert_html :top, "completed", :partial => 'todos/todo', :locals => { :parent_container_type => "completed" }
0
       page.visual_effect :highlight, dom_id(@todo, 'line'), {'startcolor' => "'#99ff99'"}
0
@@ -9,16 +10,30 @@ if @saved
0
       page.show 'tickler-empty-nd' if source_view_is(:project) && @deferred_count == 0
0
       page.hide 'empty-d' # If we've checked something as done, completed items can't be empty
0
     end
0
+    
0
+    # remove container if empty
0
     if @remaining_in_context == 0 && source_view_is(:todo)
0
-      page.visual_effect :fade, item_container_id, :duration => 0.4
0
+      page.visual_effect :fade, item_container_id(@todo), :duration => 0.4
0
     end
0
+    
0
+    # show new todo if the completed todo was recurring
0
+    unless @new_recurring_todo.nil?
0
+      page.call "todoItems.ensureVisibleWithEffectAppear", item_container_id(@new_recurring_todo)
0
+      page.insert_html :bottom, item_container_id(@new_recurring_todo), :partial => 'todos/todo', :locals => { :todo => @new_recurring_todo, :parent_container_type => parent_container_type }
0
+      page.visual_effect :highlight, dom_id(@new_recurring_todo, 'line'), {'startcolor' => "'#99ff99'"}      
0
+    else
0
+      page.notify :notice, "There is no next action after the recurring action you just finished. The recurrence is completed", 6.0 unless @recurring_todo.nil?
0
+    end
0
+    
0
   else
0
-    page.call "todoItems.ensureVisibleWithEffectAppear", item_container_id
0
-    page.insert_html :bottom, item_container_id, :partial => 'todos/todo', :locals => { :parent_container_type => parent_container_type }
0
+    # todo is activated from completed container
0
+    page.call "todoItems.ensureVisibleWithEffectAppear", item_container_id(@todo)
0
+    page.insert_html :bottom, item_container_id(@todo), :partial => 'todos/todo', :locals => { :parent_container_type => parent_container_type }
0
     page.visual_effect :highlight, dom_id(@todo, 'line'), {'startcolor' => "'#99ff99'"}
0
     page.show "empty-d" if @completed_count == 0
0
     page[empty_container_msg_div_id].hide unless empty_container_msg_div_id.nil? # If we've checked something as undone, incomplete items can't be empty
0
   end
0
+  
0
   page.hide "status"
0
   page.replace_html "badge_count", @down_count
0
   if @todo.completed?  && !@todo.project_id.nil? && @prefs.show_project_on_todo_done && !source_view_is(:project)
...
6
7
8
9
 
10
11
12
...
88
89
90
91
92
93
 
 
 
94
95
96
...
6
7
8
 
9
10
11
12
...
88
89
90
 
 
 
91
92
93
94
95
96
0
@@ -6,7 +6,7 @@ if @saved
0
   status_message = 'Added new context / ' + status_message if @new_context_created
0
   page.notify :notice, status_message, 5.0
0
   
0
-  #update auto completer arrays for context and project
0
+  # #update auto completer arrays for context and project
0
   page << "contextAutoCompleter.options.array = #{context_names_for_autocomplete}; contextAutoCompleter.changed = true" if @new_context_created
0
   page << "projectAutoCompleter.options.array = #{project_names_for_autocomplete}; projectAutoCompleter.changed = true" if @new_project_created
0
   if source_view_is_one_of(:todo, :context)
0
@@ -88,9 +88,9 @@ if @saved
0
       page.replace dom_id(@todo), :partial => 'todos/todo', :locals => { :parent_container_type => parent_container_type }
0
       page.visual_effect :highlight, dom_id(@todo), :duration => 3
0
     end
0
-    elsif source_view_is :stats
0
-      page.replace dom_id(@todo), :partial => 'todos/todo', :locals => { :parent_container_type => parent_container_type }
0
-      page.visual_effect :highlight, dom_id(@todo), :duration => 3    
0
+  elsif source_view_is :stats
0
+    page.replace dom_id(@todo), :partial => 'todos/todo', :locals => { :parent_container_type => parent_container_type }
0
+    page.visual_effect :highlight, dom_id(@todo), :duration => 3    
0
   else
0
     logger.error "unexpected source_view '#{params[:_source_view]}'"
0
   end
...
58
59
60
 
 
 
 
61
62
63
...
58
59
60
61
62
63
64
65
66
67
0
@@ -58,6 +58,10 @@ ActionController::Routing::Routes.draw do |map|
0
   map.preferences 'preferences', :controller => 'preferences', :action => 'index'
0
   map.integrations 'integrations', :controller => 'integrations', :action => 'index'
0
 
0
+  map.resources :recurring_todos,
0
+    :member => {:toggle_check => :put, :toggle_star => :put}
0
+  map.recurring_todos 'recurring_todos', :controller => 'recurring_todos', :action => 'index'
0
+
0
   # Install the default route as the lowest priority.
0
   map.connect ':controller/:action/:id'
0
 
...
1
2
3
4
5
6
7
8
 
 
 
 
 
 
 
9
10
 
11
12
13
14
15
16
17
18
 
 
 
 
 
 
 
19
20
 
21
22
23
24
25
26
27
28
29
30
31
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
34
35
36
 
37
38
39
...
43
44
45
46
47
48
49
 
 
 
 
50
51
52
...
55
56
57
58
 
59
60
61
62
63
 
 
 
64
65
66
...
1
 
 
 
 
 
 
 
2
3
4
5
6
7
8
9
 
10
11
 
 
 
 
 
 
 
12
13
14
15
16
17
18
19
 
20
21
22
 
 
 
 
 
 
 
 
 
 
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
 
 
86
87
88
89
90
...
94
95
96
 
 
 
 
97
98
99
100
101
102
103
...
106
107
108
 
109
110
111
 
 
 
112
113
114
115
116
117
0
@@ -1,39 +1,90 @@
0
 var Login = {
0
-  showOpenid: function() {
0
-    if ($('database_auth_form')) $('database_auth_form').hide();
0
-    if ($('openid_auth_form')) $('openid_auth_form').show();
0
-    if ($('alternate_auth_openid')) $('alternate_auth_openid').hide();
0
-    if ($('alternate_auth_database')) $('alternate_auth_database').show();
0
-    if ($('openid_url')) $('openid_url').focus();
0
-    if ($('openid_url')) $('openid_url').select();
0
+    showOpenid: function() {
0
+        if ($('database_auth_form')) $('database_auth_form').hide();
0
+        if ($('openid_auth_form')) $('openid_auth_form').show();
0
+        if ($('alternate_auth_openid')) $('alternate_auth_openid').hide();
0
+        if ($('alternate_auth_database')) $('alternate_auth_database').show();
0
+        if ($('openid_url')) $('openid_url').focus();
0
+        if ($('openid_url')) $('openid_url').select();
0
   new CookieManager().setCookie('preferred_auth', 'openid');
0
-  },
0
+    },
0
 
0
-  showDatabase: function(container) {
0
-    if ($('openid_auth_form')) $('openid_auth_form').hide();
0
-    if ($('database_auth_form')) $('database_auth_form').show();
0
-    if ($('alternate_auth_database')) $('alternate_auth_database').hide();
0
-    if ($('alternate_auth_openid')) $('alternate_auth_openid').show();
0
-    if ($('user_login')) $('user_login').focus();
0
-    if ($('user_login')) $('user_login').select();
0
+    showDatabase: function(container) {
0
+        if ($('openid_auth_form')) $('openid_auth_form').hide();
0
+        if ($('database_auth_form')) $('database_auth_form').show();
0
+        if ($('alternate_auth_database')) $('alternate_auth_database').hide();
0
+        if ($('alternate_auth_openid')) $('alternate_auth_openid').show();
0
+        if ($('user_login')) $('user_login').focus();
0
+        if ($('user_login')) $('user_login').select();
0
   new CookieManager().setCookie('preferred_auth', 'database');
0
-  }
0
+    }
0
 }
0
 var TracksForm = {
0
-  toggle: function(toggleDivId, formContainerId, formId, hideLinkText, hideLinkTitle, showLinkText, showLinkTitle) {
0
-    $(formContainerId).toggle();
0
-    toggleDiv = $(toggleDivId);
0
-    toggleLink = toggleDiv.down('a');
0
-    if (toggleDiv.hasClassName('hide_form')) {
0
-      toggleLink.update(showLinkText).setAttribute('title', showLinkTitle);
0
-    }
0
-    else {
0
-      toggleLink.update(hideLinkText).setAttribute('title', hideLinkTitle);
0
-      Form.focusFirstElement(formId);
0
+    toggle: function(toggleDivId, formContainerId, formId, hideLinkText, hideLinkTitle, showLinkText, showLinkTitle) {
0
+        $(formContainerId).toggle();
0
+        toggleDiv = $(toggleDivId);
0
+        toggleLink = toggleDiv.down('a');
0
+        if (toggleDiv.hasClassName('hide_form')) {
0
+            toggleLink.update(showLinkText).setAttribute('title', showLinkTitle);
0
+        }
0
+        else {
0
+            toggleLink.update(hideLinkText).setAttribute('title', hideLinkTitle);
0
+            Form.focusFirstElement(formId);
0
+        }
0
+        toggleDiv.toggleClassName('hide_form');
0
+    }, 
0
+    get_period: function() {
0
+        if ($('recurring_todo_recurring_period_daily').checked) {
0
+            return 'daily';
0
+        } 
0
+        else if ($('recurring_todo_recurring_period_weekly').checked) {
0
+            return 'weekly';
0
+        }
0
+        else if ($('recurring_todo_recurring_period_monthly').checked) {
0
+            return 'monthly';
0
+        }
0
+        else if ($('recurring_todo_recurring_period_yearly').checked) {
0
+            return 'yearly';
0
+        }
0
+        else {
0
+            return 'no period'
0
+        }
0
+    },
0
+    get_edit_period: function() {
0
+        if ($('recurring_edit_todo_recurring_period_daily').checked) {
0
+            return 'daily';
0
+        } 
0
+        else if ($('recurring_edit_todo_recurring_period_weekly').checked) {
0
+            return 'weekly';
0
+        }
0
+        else if ($('recurring_edit_todo_recurring_period_monthly').checked) {
0
+            return 'monthly';
0
+        }
0
+        else if ($('recurring_edit_todo_recurring_period_yearly').checked) {
0
+            return 'yearly';
0
+        }
0
+        else {
0
+            return 'no period'
0
+        }
0
+    },
0
+    hide_all_recurring: function () {
0
+        $('recurring_daily').hide();
0
+        $('recurring_weekly').hide();
0
+        $('recurring_monthly').hide();
0
+        $('recurring_yearly').hide();
0
+    },
0
+    hide_all_edit_recurring: function () {
0
+        $('recurring_edit_daily').hide();
0
+        $('recurring_edit_weekly').hide();
0
+        $('recurring_edit_monthly').hide();
0
+        $('recurring_edit_yearly').hide();
0
+    },
0
+    toggle_overlay: function () {
0
+        el = document.getElementById("overlay");
0
+        el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
0
     }
0
-    toggleDiv.toggleClassName('hide_form');
0
-  }
0
 }
0
+
0
 // uncomment the next four lines for easier debugging with FireBug
0
 // Ajax.Responders.register({
0
 //  onException: function(source, exception) {
0
@@ -43,10 +94,10 @@ var TracksForm = {
0
 
0
 /* fade flashes automatically */
0
 Event.observe(window, 'load', function() { 
0
-  $A(document.getElementsByClassName('alert')).each(function(o) {
0
-    o.opacity = 100.0
0
-    Effect.Fade(o, {duration: 8.0})
0
-  });
0
+    $A(document.getElementsByClassName('alert')).each(function(o) {
0
+        o.opacity = 100.0
0
+        Effect.Fade(o, {duration: 8.0})
0
+    });
0
 });
0
 
0
 /**
0
@@ -55,12 +106,12 @@ Event.observe(window, 'load', function() {
0
  */
0
 CookieManager = Class.create();
0
 CookieManager.prototype =
0
-{
0
+    {
0
     BROWSER_IS_IE:
0
         (document.all
0
-         && window.ActiveXObject
0
-         && navigator.userAgent.toLowerCase().indexOf("msie") > -1
0
-         && navigator.userAgent.toLowerCase().indexOf("opera") == -1),
0
+        && window.ActiveXObject
0
+        && navigator.userAgent.toLowerCase().indexOf("msie") > -1
0
+        && navigator.userAgent.toLowerCase().indexOf("opera") == -1),
0
 
0
     /**
0
      * I hate navigator string based browser detection too, but when Opera alone
...
3
4
5
6
7
 
 
8
9
10
11
 
 
12
13
14
 
15
16
17
18
 
 
19
20
21
 
22
23
24
 
25
26
27
28
 
 
29
30
31
 
32
33
34
35
36
37
38
39
40
41
42
 
 
 
 
 
 
43
44
45
46
47
48
 
 
 
 
49
50
51
52
53
54
55
56
 
 
 
 
 
 
57
58
59
60
 
 
 
61
62
63
64
 
 
65
66
67
68
69
 
 
70
71
72
73
74
 
 
75
76
77
...
105
106
107
108
109
110
 
 
 
111
112
113
114
115
 
 
 
 
116
117
118
119
120
 
 
 
121
122
123
124
125
126
 
 
 
 
127
128
129
130
131
132
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
134
135
136
137
138
139
140
141
 
 
 
 
 
142
143
144
145
146
 
 
 
 
147
148
149
150
151
152
153
 
 
 
 
 
154
155
156
157
158
159
160
161
162
 
 
 
 
 
 
 
163
164
165
166
167
168
169
 
 
 
 
 
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
189
190
191
192
193
194
195
196
197
198
199
200
 
 
 
 
 
 
 
201
202
203
204
 
 
 
205
206
207
208
209
210
211
212
 
 
 
 
 
 
 
213
214
215
216
217
218
 
 
 
 
 
219
220
221
222
223
 
224
225
226
227
228
229
230
231
232
233
234
 
 
 
 
 
 
 
 
 
 
235
236
237
238
239
240
 
 
 
 
241
242
243
244
245
246
 
 
 
 
247
248
249
250
251
252
 
 
 
 
 
253
254
255
256
 
 
 
257
258
259
260
261
 
 
 
262
263
264
265
266
 
267
268
269
270
271
272
 
 
 
273
274
275
276
277
278
279
 
 
 
 
 
 
 
 
 
 
280
281
282
283
284
285
 
 
 
 
 
286
287
288
289
290
 
 
 
 
291
292
293
294
295
 
 
 
296
297
298
299
300
 
 
 
301
302
303
304
305
 
 
 
306
307
308
309
310
311
 
 
 
 
 
312
313
314
315
316
317
318
319
320
 
 
 
 
 
 
 
 
321
322
323
324
325
326
327
328
329
 
 
 
 
 
 
 
330
331
332
333
334
335
 
 
 
 
 
336
337
338
 
 
339
340
341
342
343
 
 
344
345
346
347
348
349
350
351
 
 
 
352
353
354
355
356
 
 
 
357
358
359
360
361
362
363
 
 
 
 
 
 
364
365
366
367
368
369
370
 
 
 
 
 
371
372
373
374
375
 
 
 
376
377
378
 
 
379
380
381
 
 
382
383
384
 
385
386
387
388
 
389
390
391
...
393
394
395
396
397
398
399
400
 
 
 
 
 
401
402
403
404
405
406
407
 
408
409
410
411
412
 
 
413
414
415
416
417
418
419
420
421
422
423
 
 
 
 
 
 
424
425
426
427
428
429
430
 
 
 
 
431
432
433
434
435
436
 
 
 
437
438
439
440
 
 
441
442
443
444
445
 
 
 
446
447
448
449
450
451
452
453
454
455
 
 
 
 
 
456
457
 
458
459
 
460
461
462
463
464
465
466
 
 
 
 
 
 
467
468
469
470
471
472
473
 
 
 
 
 
 
474
475
476
477
478
479
 
 
 
 
 
480
481
482
483
484
485
486
487
 
 
 
 
 
 
488
489
490
491
492
493
494
 
 
 
 
 
 
495
496
497
498
499
500
501
502
 
 
 
 
 
 
 
503
504
505
 
 
506
507
508
509
510
 
 
511
512
513
514
 
 
 
515
516
517
 
 
518
519
520
521
 
 
522
523
524
525
526
527
528
529
530
531
532
 
 
 
 
 
 
 
 
533
534
535
 
 
536
537
538
539
 
 
540
541
 
542
543
544
545
546
 
 
 
 
547
548
549
550
 
 
 
551
552
553
 
 
554
555
556
557
 
 
 
558
559
560
561
562
563
564
565
 
 
 
 
 
 
566
567
568
569
570
571
572
573
 
 
 
 
 
 
574
575
576
577
578
579
 
 
 
580
581
 
582
583
584
...
587
588
589
590
591
 
 
592
593
594
595
596
597
 
 
598
599
600
601
602
603
 
604
605
606
607
608
 
 
609
610
 
611
612
613
614
 
615
616
617
618
619
 
 
620
621
622
 
623
624
625
626
 
627
628
629
630
 
631
632
633
...
640
641
642
643
 
644
645
 
646
647
 
648
649
 
650
651
652
653
654
655
 
656
657
658
659
 
660
661
662
663
 
664
665
666
667
668
669
670
 
671
672
673
674
675
676
677
678
679
680
681
682
683
684
 
 
 
 
 
 
 
 
 
 
 
 
 
 
685
686
687
...
693
694
695
696
 
697
698
699
...
701
702
703
704
 
705
706
707
708
 
709
710
711
712
713
714
715
 
 
 
 
716
717
718
719
720
721
722
 
 
 
 
723
724
725
726
 
727
728
729
730
 
731
732
733
 
734
735
736
737
 
738
739
740
741
 
742
743
744
 
745
746
747
...
749
750
751
752
753
754
 
 
 
755
756
757
758
759
760
761
 
 
762
763
764
765
 
 
766
767
768
...
774
775
776
777
778
 
 
779
780
781
782
783
 
 
784
785
786
...
790
791
792
793
794
795
 
 
 
796
797
798
799
800
801
802
803
 
 
 
 
 
804
805
806
807
808
809
810
 
 
 
811
812
813
814
815
816
817
818
 
 
 
 
 
819
820
821
822
823
824
825
826
827
828
 
 
 
 
 
 
 
829
830
831
832
833
834
835
 
 
 
 
836
837
838
839
840
841
842
843
 
 
 
 
 
844
845
846
847
848
849
850
 
 
 
851
852
853
 
854
855
856
857
 
 
858
859
860
861
 
 
862
863
864
865
 
 
866
867
868
869
870
871
872
873
 
 
 
 
 
 
874
875
876
 
877
878
879
 
880
881
882
 
883
884
885
 
886
887
888
 
889
890
891
892
 
 
893
894
895
896
897
898
 
 
 
 
899
900
901
902
903
904
905
906
 
 
 
 
 
 
907
908
909
910
911
912
 
 
 
 
913
914
915
916
917
918
919
920
 
 
 
 
 
921
922
923
924
925
926
927
928
 
 
 
 
 
929
930
931
932
 
933
934
935
936
937
938
 
 
 
939
940
941
942
 
943
944
945
946
947
948
949
950
 
 
 
 
 
951
952
953
954
955
956
957
958
959
 
 
 
960
961
962
963
964
965
966
 
967
968
969
...
973
974
975
976
 
977
978
979
...
1047
1048
1049
1050
1051
1052
1053
 
 
 
 
1054
1055
1056
1057
1058
1059
1060
 
 
 
 
1061
1062
1063
1064
1065
1066
1067
 
 
 
 
1068
1069
1070
1071
1072
1073
1074
 
 
 
 
1075
1076
1077
1078
1079
1080
 
 
 
 
1081
1082
1083
1084
1085
1086
 
 
 
1087
1088
1089
1090
1091
1092
 
 
 
 
1093
1094
1095
 
1096
1097
1098
1099
1100
 
 
 
1101
1102
1103
1104
1105
1106
 
 
 
 
1107
1108
...
3
4
5
 
 
6
7
8
9
 
 
10
11
12
13
 
14
15
16
 
 
17
18
19
20
 
21
22
23
 
24
25
26
 
 
27
28
29
30
 
31
32
33
34
35
36
 
 
 
 
 
 
37
38
39
40
41
42
43
44
 
 
 
 
45
46
47
48
49
50
 
 
 
 
 
 
51
52
53
54
55
56
57
 
 
 
58
59
60
61
62
 
 
63
64
65
66
67
 
 
68
69
70
71
72
 
 
73
74
75
76
77
...
105
106
107
 
 
 
108
109
110
111
 
 
 
 
112
113
114
115
116
117
 
 
 
118
119
120
121
122
 
 
 
 
123
124
125
126
127
128
 
 
 
 
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
 
 
 
 
 
213
214
215
216
217
218
 
 
 
 
219
220
221
222
223
224
 
 
 
 
 
225
226
227
228
229
230
231
 
 
 
 
 
 
 
232
233
234
235
236
237
238
239
240
 
 
 
 
 
241
242
243
244
245
246
247
248
249
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
 
 
 
 
 
 
 
270
271
272
273
274
275
276
277
 
 
 
278
279
280
281
 
 
 
 
 
 
 
282
283
284
285
286
287
288
289
 
 
 
 
 
290
291
292
293
294
295
296
297
298
 
299
300
 
 
 
 
 
 
 
 
 
 
301
302
303
304
305
306
307
308
309
310
311
312
 
 
 
 
313
314
315
316
317
318
 
 
 
 
319
320
321
322
323
 
 
 
 
 
324
325
326
327
328
329
 
 
 
330
331
332
333
334
 
 
 
335
336
337
338
339
340
341
 
342
343
344
345
 
 
 
346
347
348
349
350
 
 
 
 
 
351
352
353
354
355
356
357
358
359
360
361
 
 
 
 
 
362
363
364
365
366
367
 
 
 
 
368
369
370
371
372
373
 
 
 
374
375
376
377
378
 
 
 
379
380
381
382
383
 
 
 
384
385
386
387
 
 
 
 
 
388
389
390
391
392
393
 
 
 
 
 
 
 
 
394
395
396
397
398
399
400
401
402
403
 
 
 
 
 
 
 
404
405
406
407
408
409
410
411
 
 
 
 
 
412
413
414
415
416
417
 
 
418
419
420
421
422
 
 
423
424
425
426
427
428
429
 
 
 
430
431
432
433
434
 
 
 
435
436
437
438
 
 
 
 
 
 
439
440
441
442
443
444
445
446
 
 
 
 
 
447
448
449
450
451
452
453
 
 
 
454
455
456
457
 
 
458
459
460
 
 
461
462
463
464
 
465
466
467
468
 
469
470
471
472
...
474
475
476
 
 
 
 
 
477
478
479
480
481
482
483
484
485
486
487
 
488
489
490
491
 
 
492
493
494
495
496
497
498
 
 
 
 
 
 
499
500
501
502
503
504
505
506
507
 
 
 
 
508
509
510
511
512
513
514
 
 
 
515
516
517
518
519
 
 
520
521
522
523
 
 
 
524
525
526
527
528
529
530
531
 
 
 
 
 
532
533
534
535
536
537
 
538
539
 
540
541
 
 
 
 
 
 
542
543
544
545
546
547
548
 
 
 
 
 
 
549
550
551
552
553
554
555
 
 
 
 
 
556
557
558
559
560
561
562
 
 
 
 
 
 
563
564
565
566
567
568
569
 
 
 
 
 
 
570
571
572
573
574
575
576
 
 
 
 
 
 
 
577
578
579
580
581
582
583
584
 
 
585
586
587
588
589
 
 
590
591
592
 
 
 
593
594
595
596
 
 
597
598
599
600
 
 
601
602
603
604
605
 
 
 
 
 
 
 
 
606
607
608
609
610
611
612
613
614
 
 
615
616
617
618
 
 
619
620
621
 
622
623
 
 
 
 
624
625
626
627
628
 
 
 
629
630
631
632
 
 
633
634
635
 
 
 
636
637
638
639
640
 
 
 
 
 
 
641
642
643
644
645
646
647
648
 
 
 
 
 
 
649
650
651
652
653
654
655
656
657
 
 
 
658
659
660
661
 
662
663
664
665
...
668
669
670
 
 
671
672
673
674
675
676
 
 
677
678
679
680
681
682
683
 
684
685
686
687
 
 
688
689
690
 
691
692
693
694
 
695
696
697
698
 
 
699
700
701
702
 
703
704
705
706
 
707
708
709
710
 
711
712
713
714
...
721
722
723
 
724
725
 
726
727
 
728
729
 
730
731
732
733
734
735
 
736
737
738
739
 
740
741
742
743
 
744
745
746
747
748
749
750
 
751
752
753
754
755
 
 
 
 
 
 
 
 
 
 
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
...
778
779
780
 
781
782
783
784
...
786
787
788
 
789
790
791
792
 
793
794
795
796
 
 
 
 
797
798
799
800
801
802
803
 
 
 
 
804
805
806
807
808
809
810
 
811
812
813
814
 
815
816
817
 
818
819
820
821
 
822
823
824
825
 
826
827
828
 
829
830
831
832
...
834
835
836
 
 
 
837
838
839
840
841
842
843
844
 
 
845
846
847
848
 
 
849
850
851
852
853
...
859
860
861
 
 
862
863
864
865
866
 
 
867
868
869
870
871
...
875
876
877
 
 
 
878
879
880
881
882
883
 
 
 
 
 
884
885
886
887
888
889
890
891
892
 
 
 
893
894
895
896
897
898
 
 
 
 
 
899
900
901
902
903
904
905
906
 
 
 
 
 
 
 
907
908
909
910
911
912
913
914
915
916
 
 
 
 
917
918
919
920
921
922
923
 
 
 
 
 
924
925
926
927
928
929
930
931
932
 
 
 
933
934
935
936
937
 
938
939
940
 
 
941
942
943
944
 
 
945
946
947
948
 
 
949
950
951
952
 
 
 
 
 
 
953
954
955
956
957
958
959
960
 
961
962
963
 
964
965
966
 
967
968
969
 
970
971
972
 
973
974
975
 
 
976
977
978
979
 
 
 
 
980
981
982
983
984
985
 
 
 
 
 
 
986
987
988
989
990
991
992
993
 
 
 
 
994
995
996
997
998
999
1000
 
 
 
 
 
1001
1002
1003
1004
1005
1006
1007
1008
 
 
 
 
 
1009
1010
1011
1012
1013
1014
1015
1016
 
1017
1018
1019
1020
 
 
 
1021
1022
1023
1024
1025
1026
 
1027
1028
1029
1030
 
 
 
 
 
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
 
 
 
1042
1043
1044
1045
1046
1047
1048
1049
1050
 
1051
1052
1053
1054
...
1058
1059
1060
 
1061
1062
1063
1064
...
1132
1133
1134
 
 
 
 
1135
1136
1137
1138
1139
1140
1141
 
 
 
 
1142
1143
1144
1145
1146
1147
1148
 
 
 
 
1149
1150
1151
1152
1153
1154
1155
 
 
 
 
1156
1157
1158
1159
1160
1161
 
 
 
 
1162
1163
1164
1165
1166
1167
1168
 
 
 
1169
1170
1171
1172
1173
 
 
 
 
1174
1175
1176
1177
1178
1179
 
1180
1181
1182
 
 
 
1183
1184
1185
1186
1187
 
 
 
 
1188
1189
1190
1191
1192
1193
0
@@ -3,75 +3,75 @@
0
 /* @override http://0.0.0.0:3000/stylesheets/standard.css?1180885851 */
0
 
0
 body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { 
0
-  margin:0;
0
-  padding:0;
0
+    margin:0;
0
+    padding:0;
0
 }
0
 table {
0
-  border-collapse:collapse;
0
-  border-spacing:0;
0
+    border-collapse:collapse;
0
+    border-spacing:0;
0
 }
0
 fieldset,img { 
0
-  border:0;
0
+    border:0;
0
 }
0
 address,caption,cite,code,dfn,em,strong,th,var {
0
-  font-style:normal;
0
-  font-weight:normal;
0
+    font-style:normal;
0
+    font-weight:normal;
0
 }
0
 ol,ul {
0
-  list-style:none;
0
+    list-style:none;
0
 }
0
 caption,th {
0
-  text-align:left;
0
+    text-align:left;
0
 }
0
 h1,h2,h3,h4,h5,h6 {
0
-  font-size:100%;
0
-  font-weight:normal;
0
+    font-size:100%;
0
+    font-weight:normal;
0
 }
0
 q:before,q:after {
0
-  content:'';
0
+    content:'';
0
 }
0
 abbr,acronym { border:0;
0
 }
0
 
0
 body {
0
-      font-family: "Lucida Grande", Verdana, Geneva, Arial, sans-serif;
0
-      font-size: 80%;
0
-      padding: 0px 10px;
0
-      margin: 0px;
0
-      background: #eee;
0
-      }
0
+    font-family: "Lucida Grande", Verdana, Geneva, Arial, sans-serif;
0
+    font-size: 80%;
0
+    padding: 0px 10px;
0
+    margin: 0px;
0
+    background: #eee;
0
+}
0
 
0
 p {
0
-      padding: 2px;
0
-      font-size: 92%;
0
-      line-height: 140%;
0
-      }
0
+    padding: 2px;
0
+    font-size: 92%;
0
+    line-height: 140%;
0
+}
0
 
0
 a, a:link, a:active, a:visited {
0
-      color: #cc3334;
0
-      text-decoration: none;
0
-      padding-left: 1px;
0
-      padding-right: 1px;
0
-      }
0
-      
0
+    color: #cc3334;
0
+    text-decoration: none;
0
+    padding-left: 1px;
0
+    padding-right: 1px;
0
+}
0
+
0
 a:hover {
0
-      color: #fff;
0
-      background-color: #cc3334;
0
-      } 
0
+    color: #fff;
0
+    background-color: #cc3334;
0
+} 
0
 
0
 h1 {
0
-  font-size: 304%;
0
-  font-weight: bold;
0
+    font-size: 304%;
0
+    font-weight: bold;
0
 }
0
 
0
 h2 {
0
-  font-size: 148%;
0
-  font-weight: bold;
0
+    font-size: 148%;
0
+    font-weight: bold;
0
 }
0
 
0
 h3 {
0
-  font-size: 129%;
0
-  font-weight: bold;
0
+    font-size: 129%;
0
+    font-weight: bold;
0
 }
0
 
0
 /* Rules for the icon links */
0
@@ -105,287 +105,368 @@ a.show_notes:hover, a.link_to_notes:hover {background-image: url(../images/notes
0
 /* Structural divs */
0
 
0
 #content {
0
-      margin-top: 90px;
0
-      }
0
-      
0
+    margin-top: 90px;
0
+}
0
+
0
 #display_box {
0
-      float: left;
0
-      width: 55%;
0
-      margin: 0px 10px 50px 15px;
0
-      }
0
+    float: left;
0
+    width: 55%;
0
+    margin: 0px 10px 50px 15px;
0
+}
0
 
0
 #single_box {
0
-      width: 60%;
0
-      margin: 80px auto;
0
-      }
0
+    width: 60%;
0
+    margin: 80px auto;
0
+}
0
 
0
 #full_width_display {
0
-      float: left;
0
-      width: 95%;
0
-      margin: 0px 15px 90px 15px;
0
-      }
0
+    float: left;
0
+    width: 95%;
0
+    margin: 0px 15px 90px 15px;
0
+}
0
 
0
 #display_box_projects {
0
-      float: left;
0
-      width: 95%;
0
-      margin: 0px 15px 90px 15px;
0
-      }
0
+    float: left;
0
+    width: 95%;
0
+    margin: 0px 15px 90px 15px;
0
+}
0
+
0
+#recurring_timespan, #recurring_target {
0
+    border: none;
0
+    clear: both;
0
+}
0
+
0
+#recurring_target {
0
+    border-top-style: dotted;
0
+    padding: 15px 0px 0px 0px;
0
+}
0
+
0
+#recurring_daily, #recurring_weekly, #recurring_monthly, #recurring_yearly,
0
+#recurring_edit_daily, #recurring_edit_weekly, #recurring_edit_monthly, #recurring_edit_yearly {
0
+    border: none;
0
+    border-top-style: dotted;
0
+    clear: both;
0
+    padding: 15px 0px 15px 0px;
0
+}
0
+
0
+#recurring_period_id, #recurring_edit_period_id {
0
+    border: none;
0
+    float: left;
0
+    margin: 0px 50px 0px 0px;
0
+    padding: 0px 25px 15px 50px;
0
+    border-right-style: none;
0
+}
0
+
0
+#recurring_todo {
0
+    width: 270px;
0
+}
0
+
0
+#recurring_todo_form_container {
0
+    border-right-style: dotted;
0
+    padding: 0px 50px 15px 0px;
0
+    float: left;
0
+}
0
+
0
+#recurring_todo input, #recurring_todo textarea {
0
+    width: 100%;
0
+}
0
+
0
+#overlay {
0
+    visibility: hidden;
0
+    position: absolute;
0
+    left: 0px;
0
+    top: 0px;
0
+    width: 100%;
0
+    height: 100%;
0
+    z-index: 102;
0
+    text-align: center;
0
+    background-image:url("../images/trans70.png");
0
+}
0
+
0
+#overlay #new-recurring-todo, #overlay #edit-recurring-todo {
0
+    width:750px;
0
+    background-color: #fff;
0
+    border:1px solid #000;
0
+    padding: 15px;
0
+    margin: 70px auto;
0
+}
0
+
0
+.recurring_container {
0
+    padding: 0px 5px 0px 5px; 
0
+    border: 1px solid #999;
0
+    margin: 0px 0px 0px 0px;
0
+    background: #fff; 
0
+    text-align: left;
0
+}
0
+
0
+.recurring_submit_box {
0
+    height: 25px;
0
+    padding: 5px 0;
0
+    text-align: center;
0
+    clear: both;
0
+    border: none;
0
+}      
0
 
0
 /* Navigation links at the top */
0
 
0
 #navcontainer {
0
-      position: fixed;
0
-      top: 48px;
0
-      left: 0px;
0
-      }
0
-            
0
+    position: fixed;
0
+    top: 48px;
0
+    left: 0px;
0
+}
0
+
0
 #navlist {
0
-      margin: 0;
0
-      padding: 0 0 20px 5px;
0
-/*      border-bottom: 1px solid #000;*/
0
-      }
0
+    margin: 0;
0
+    padding: 0 0 20px 5px;
0
+    /*      border-bottom: 1px solid #000;*/
0
+}
0
 
0
 #navlist ul, #navlist li {
0
-      margin: 0;
0
-      padding: 0;
0
-      display: inline;
0
-      list-style-type: none;
0
-      }
0
+    margin: 0;
0
+    padding: 0;
0
+    display: inline;
0
+    list-style-type: none;
0
+}
0
 
0
 #navlist a:link, #navlist a:visited {
0
-      float: left;
0
-      line-height: 14px;
0
-      font-weight: bold;
0
-      margin: 0 10px 4px 10px;
0
-      text-decoration: none;
0
-      color: #eee;
0
-      }
0
+    float: left;
0
+    line-height: 14px;
0
+    font-weight: bold;
0
+    margin: 0 10px 4px 10px;
0
+    text-decoration: none;
0
+    color: #eee;
0
+}
0
 
0
 #navlist a:link#current, #navlist a:visited#current, #navlist a:hover {
0
-      border-bottom: 4px solid #CCC;
0
-      padding-bottom: 2px;
0
-      background: transparent;
0
-      color: #CCC;
0
-      }
0
+    border-bottom: 4px solid #CCC;
0
+    padding-bottom: 2px;
0
+    background: transparent;
0
+    color: #CCC;
0
+}
0
 
0
 #navlist a:hover { color: #CCC; }
0
 
0
 #topbar {
0
-      position: fixed;
0
-      top: 0px;
0
-      left: 0px;
0
-      height: 68px;
0
-      margin-bottom: 20px;
0
-      clear: both;
0
-      background-color: #000;
0
-      filter: alpha(opacity=75);
0
-      -moz-opacity: .75;
0
-      opacity: .75;
0
-      color: #eee;
0
-      width: 100%;
0
-      z-index:1100;
0
-      }
0
+    position: fixed;
0
+    top: 0px;
0
+    left: 0px;
0
+    height: 68px;
0
+    margin-bottom: 20px;
0
+    clear: both;
0
+    background-color: #000;
0
+    filter: alpha(opacity=75);
0
+    -moz-opacity: .75;
0
+    opacity: .75;
0
+    color: #eee;
0
+    width: 100%;
0
+    z-index:101;
0
+}
0
 body.stats #topbar {
0
     filter: alpha(opacity=100);
0
     -moz-opacity: 1;
0
     opacity: 1;
0
 }      
0
 #date {
0
-      float: left;
0
-      width: 45%;
0
-      padding-left: 15px;
0
-      margin-top: 15px;
0
-      margin-bottom: 5px;
0
-      white-space: nowrap; /* added 2006-05-17 for safari display, timfm */ 
0
-      }
0
+    float: left;
0
+    width: 45%;
0
+    padding-left: 15px;
0
+    margin-top: 15px;
0
+    margin-bottom: 5px;
0
+    white-space: nowrap; /* added 2006-05-17 for safari display, timfm */ 
0
+}
0
 #date h1 {
0
-      font-size: 152%;
0
-      }
0
-      
0
+    font-size: 152%;
0
+}
0
+
0
 #minilinks {
0
-      text-align: right;
0
-      position: fixed;
0
-      right: 15px;
0
-      top: 10px;
0
-      font-size: 0.9em;
0
-      }
0
-      
0
+    text-align: right;
0
+    position: fixed;
0
+    right: 15px;
0
+    top: 10px;
0
+    font-size: 0.9em;
0
+}
0
+
0
 .container {
0
-      padding: 0px 5px 0px 5px; 
0
-      border: 1px solid #999;
0
-      margin: 0px 0px 15px 0px;
0
-      background: #fff; 
0
-      }
0
+    padding: 0px 5px 0px 5px; 
0
+    border: 1px solid #999;
0
+    margin: 0px 0px 15px 0px;
0
+    background: #fff; 
0
+}
0
 
0
 .completed {
0
     background: #eee;   
0
 }
0
-      
0
+
0
 .container h2 {
0
-      background: #ccc;
0
-      padding: 5px;
0
-      margin-top: 0px;
0
-      margin-left: -5px;
0
-      margin-right: -5px;
0
-      margin-bottom: 0px;      
0
-      color: #666;
0
-      position:left;  /* changed from relative to left in order to show 'add note' */
0
-      /* text-shadow: rgba(0,0,0,.4) 0px 2px 5px; */
0
-      }
0
+    background: #ccc;
0
+    padding: 5px;
0
+    margin-top: 0px;
0
+    margin-left: -5px;
0
+    margin-right: -5px;
0
+    margin-bottom: 0px;      
0
+    color: #666;
0
+    position:left;  /* changed from relative to left in order to show 'add note' */
0
+    /* text-shadow: rgba(0,0,0,.4) 0px 2px 5px; */
0
+}
0
 
0
 .container_toggle img {
0
-    height:20px;
0
-    width:20px;
0
-    border:0px;
0
-    }
0
+    height:20px;
0
+    width:20px;
0
+    border:0px;
0
+}
0
 
0
 h2 a, h2 a:link, h2 a:active, h2 a:visited {
0
-      color: #666;
0
-      text-decoration: none;
0
-      }
0
-      
0
+    color: #666;
0
+    text-decoration: none;
0
+}
0
+
0
 h2 a:hover {
0
-      color: #cc3334;
0
-      background-color: transparent;
0
-      text-decoration: none;
0
-      }
0
-      
0
+    color: #cc3334;
0
+    background-color: transparent;
0
+    text-decoration: none;
0
+}
0
+
0
 div#input_box {
0
-      margin: 0px 15px 0px 58%;
0
-      padding: 0px 15px 0px 0px;
0
-      }
0
+    margin: 0px 15px 0px 58%;
0
+    padding: 0px 15px 0px 0px;
0
+}
0
 
0
 #input_box h2 {
0
-      color: #999;
0
-      
0
-      }
0
+    color: #999;
0
+    
0
+}
0
 
0
 #input_box ul {list-style-type: circle; font-size: 0.9em;}
0
 
0
 .show_from_input, .due_input, .project_input, .context_input {
0
-  float:left;
0
+    float:left;
0
 }
0
 
0
 .box {
0
-      float: left;
0
-      width: 20px;
0
-      }
0
+    float: left;
0
+    width: 20px;
0
+}
0
 
0
 div.item-container {
0
-      padding: 2px 0px;
0
-      line-height:20px;
0
-      clear: both;
0
-      }
0
-      
0
+    padding: 2px 0px;
0
+    line-height:20px;
0
+    clear: both;
0
+}
0
+
0
+a.recurring_icon {
0
+    vertical-align: middle;
0
+    background-color: transparent;    
0
+}
0
+
0
 a.icon {
0
-      float: left;
0
-      vertical-align: middle;
0
-      background-color: transparent;
0
-      }
0
-      
0
+    float: left;
0
+    vertical-align: middle;
0
+    background-color: transparent;
0
+}
0
+
0
 input.item-checkbox {
0
-     float: left;
0
-      margin-left: 10px;
0
-      vertical-align: middle;
0
-      }
0
+    float: left;
0
+    margin-left: 10px;
0
+    vertical-align: middle;
0
+}
0
 
0
 .description {
0
-      margin-left: 85px;
0
-      position:relative
0
-      }
0
+    margin-left: 85px;
0
+    position:relative
0
+}
0
 
0
 .stale_l1, .stale_l2, .stale_l3 {
0
-     margin-left: 82px;
0
-  padding-left: 3px;
0
-      }
0
+    margin-left: 82px;
0
+    padding-left: 3px;
0
+}
0
 
0
 .stale_l1 {
0
-      background: #ffC;
0
-      }
0
-      
0
+    background: #ffC;
0
+}
0
+
0
 .tools {
0
-      margin-left: 25px;
0
-      width: 40px;
0
-      border-top: 1px solid #999;
0
-      }
0
-            
0
+    margin-left: 25px;
0
+    width: 40px;
0
+    border-top: 1px solid #999;
0
+}
0
+
0
 #footer {
0
-      clear: both;
0
-      font-size: 85%;
0
-      text-align: center;
0
-      color: #999;
0
-      margin: 20px 20px 5px 20px;
0
-      padding: 0px;
0
-      }
0
-      
0
+    clear: both;
0
+    font-size: 85%;
0
+    text-align: center;
0
+    color: #999;
0
+    margin: 20px 20px 5px 20px;
0
+    padding: 0px;
0
+}
0
+
0
 /* The notes which may be attached to an item */      
0
 .todo_notes {
0
-      margin: 5px;
0
-      padding: 3px;
0
-      border: 1px solid #F5ED59;
0
-      background: #FAF6AE;
0
-      color: #666666;
0
-      }
0
-      
0
+    margin: 5px;
0
+    padding: 3px;
0
+    border: 1px solid #F5ED59;
0
+    background: #FAF6AE;
0
+    color: #666666;
0
+}
0
+
0
 .todo_notes p, .todo_notes li {
0
-      padding: 1px;
0
-      margin: 0px;
0
-      font-size: 12px;
0
-      }
0
-      
0
+    padding: 1px;
0
+    margin: 0px;
0
+    font-size: 12px;
0
+}
0
+
0
 .todo_notes ul, .note_wrapper ul {
0
-      list-style-type: disc;
0
-      margin-left:20px;
0
+    list-style-type: disc;
0
+    margin-left:20px;
0
 }
0
 
0
 .todo_notes ol {
0
-      list-style-type: decimal;
0
-      margin-left:20px;
0
+    list-style-type: decimal;
0
+    margin-left:20px;
0
 }
0
 
0
 /* The notes for the project */
0
 
0
 div.note_wrapper {
0
-      margin: 3px;
0
-      padding: 2px;
0
-      }
0
+    margin: 3px;
0
+    padding: 2px;
0
+}
0
 
0
 div.note_wrapper p {
0
-      display: inline;
0
-      }
0
-      
0
+    display: inline;
0
+}
0
+
0
 div.note_footer {
0
-      border-top: 1px solid #999;
0
-      padding-top: 3px;
0
-      font-style: italic;
0
-      font-size: 0.9em;
0
-      color: #666;
0
-      }
0
+    border-top: 1px solid #999;
0
+    padding-top: 3px;
0
+    font-style: italic;
0
+    font-size: 0.9em;
0
+    color: #666;
0
+}
0
 
0
 div.note_footer a, div.note_footer a:hover {
0
-      border-top: none;
0
-      padding-top: 0px;
0
-      vertical-align: middle;
0
-      background-color: transparent;
0
-      }
0
+    border-top: none;
0
+    padding-top: 0px;
0
+    vertical-align: middle;
0
+    background-color: transparent;
0
+}
0
 
0
 div.add_note_link {
0
-  margin-top:12px;
0
-  float: right;
0
-  }
0
+    margin-top:12px;
0
+    float: right;
0
+}
0
 div#project_status > div {
0
-  padding: 10px;
0
-  }
0
+    padding: 10px;
0
+}
0
 #project_status span {
0
-  margin-right:5px;
0
-  background-color:white;
0
+    margin-right:5px;
0
+    background-color:white;
0
 }
0
 #project_status .active_state {
0
-  font-weight:bold;
0
+    font-weight:bold;
0
 }
0
 
0
 div#default_context > div{
0
-  padding:10px;
0
+    padding:10px;
0
 }
0
 a.footer_link {color: #cc3334; font-style: normal;}
0
 a.footer_link:hover {color: #fff; background-color: #cc3334 !important;}
0
@@ -393,192 +474,192 @@ a.footer_link:hover {color: #fff; background-color: #cc3334 !important;}
0
 /* Tag formatting */
0
 
0
 span.tag {
0
-  font-size: 0.8em;
0
-  background-color: #CCE7FF;
0
-  color: #000;
0
-  padding: 1px;
0
-  margin-right: 2px;
0
+    font-size: 0.8em;
0
+    background-color: #CCE7FF;
0
+    color: #000;
0
+    padding: 1px;
0
+    margin-right: 2px;
0
 }
0
 
0
 span.tag a, 
0
 span.tag a:link, 
0
 span.tag a:active, 
0
 span.tag a:visited {
0
-  color: #000;
0
+    color: #000;
0
 }
0
 
0
 span.tag a:hover {
0
-  background-color: #99CCFF;
0
-  color: #333;
0
+    background-color: #99CCFF;
0
+    color: #333;
0
 }
0
 
0
 /* Flash box styling */
0
 
0
 div#message_holder {
0
-  position: absolute;
0
-  z-index: 100;
0
-  left: 60%;
0
-  top: 30px;
0
-  right: 0px;
0
-  margin: 0px;
0
+    position: absolute;
0
+    z-index: 100;
0
+    left: 60%;
0
+    top: 30px;
0
+    right: 0px;
0
+    margin: 0px;
0
 }
0
 
0
 h4.alert  {
0
-   font-size: 1em;
0
-   margin: 0px;
0
-   padding: 5px;
0
-   text-align: center;
0
+    font-size: 1em;
0
+    margin: 0px;
0
+    padding: 5px;
0
+    text-align: center;
0
 }
0
 
0
 h4.warning  {
0
-  border: 1px solid #ED2E38; 
0
-  background-color: #F6979C;
0
-  color: #000;
0
+    border: 1px solid #ED2E38; 
0
+    background-color: #F6979C;
0
+    color: #000;
0
 }
0
 h4.error  {
0
-   color:#fff; 
0
-   background:#c00;
0
+    color:#fff; 
0
+    background:#c00;
0
 }
0
 h4.notice {
0
-  border: 1px solid #007E00; 
0
-  background-color: #c2ffc2;
0
-  color: #007E00;
0
+    border: 1px solid #007E00; 
0
+    background-color: #c2ffc2;
0
+    color: #007E00;
0
 }
0
 
0
 /* *****/
0
 
0
 .project_completed {
0
-      border: 1px solid #007E00; 
0
-      background-color: #c2ffc2;
0
-      padding: 5px;
0
-      color: #007E00;
0
-      text-align: center;
0
+    border: 1px solid #007E00; 
0
+    background-color: #c2ffc2;
0
+    padding: 5px;
0
+    color: #007E00;
0
+    text-align: center;
0
 }
0
-              
0
+
0
 /*   Draw attention to some text 
0
-    Same format as traffic lights */
0
+Same format as traffic lights */
0
 .red {
0
-      color: #fff;
0
-      background: #f00;
0
-      padding: 1px;
0
-      font-size: 85%;
0
-      }
0
-      
0
+    color: #fff;
0
+    background: #f00;
0
+    padding: 1px;
0
+    font-size: 85%;
0
+}
0
+
0
 .amber {
0
-      color: #fff;
0
-      background: #ff6600;
0
-      padding: 1px;
0
-      font-size: 85%;
0
-      }
0
-         
0
+    color: #fff;
0
+    background: #ff6600;
0
+    padding: 1px;
0
+    font-size: 85%;
0
+}
0
+
0
 .orange {
0
-      color: #fff;
0
-      background: #FFA500;
0
-      padding: 1px;
0
-      font-size: 85%;
0
-      }
0
+    color: #fff;
0
+    background: #FFA500;
0
+    padding: 1px;
0
+    font-size: 85%;
0
+}
0
 
0
 .green {
0
-      color: #fff;
0
-      background: #33cc00;
0
-      padding: 1px;
0
-      font-size: 85%;
0
-      }
0
-      
0
+    color: #fff;
0
+    background: #33cc00;
0
+    padding: 1px;
0
+    font-size: 85%;
0
+}
0
+
0
 .grey {
0
-      color: #fff;
0
-      background: #999;
0
-      padding: 2px;
0
-      font-size: 85%;
0
-      }
0
-      
0
+    color: #fff;
0
+    background: #999;
0
+    padding: 2px;
0
+    font-size: 85%;
0
+}
0
+
0
 .info {
0
-      color: #fff;
0
-      background: #CCC;
0
-      border: 1px solid #999;
0
-      padding: 5px;
0
-      text-align: center;
0
-      }
0
-      
0
+    color: #fff;
0
+    background: #CCC;
0
+    border: 1px solid #999;
0
+    padding: 5px;
0
+    text-align: center;
0
+}
0
+
0
 .highlight {
0
-      background: #ffC;
0
-      padding: 2px;
0
+    background: #ffC;
0
+    padding: 2px;
0
 } 
0
 
0
 /*  Backgrounds marking out 'staleness' of a task based on age of creation date
0
-    The colour of the background gets progressively yellower with age */
0
-    
0
+The colour of the background gets progressively yellower with age */
0
+
0
 .stale_l1 {
0
-      background: #ffC;
0
-      }
0
-      
0
+    background: #ffC;
0
+}
0
+
0
 .stale_l2 {
0
-      background: #ff6;
0
-      }
0
+    background: #ff6;
0
+}
0
 
0
 .stale_l3 {
0
-      background: #ff0;
0
-      }
0
+    background: #ff0;
0
+}
0
 
0
 /* Shows the number of undone next action */
0
 .badge {
0
-      color: #fff;
0
-      background: #f00;
0
-      padding: 3px 5px;
0
-      font-size: 12pt;
0
-      margin: 10px 10px 0px 0px;
0
-      height:26px;
0
-      }
0
-        
0
+    color: #fff;
0
+    background: #f00;
0
+    padding: 3px 5px;
0
+    font-size: 12pt;
0
+    margin: 10px 10px 0px 0px;
0
+    height:26px;
0
+}
0
+
0
 ul {
0
-      list-style-type: none;
0
-      }
0
+    list-style-type: none;
0
+}
0
 
0
 #sidebar h3 {
0
-  margin-top:15px;
0
-  margin-bottom:5px;
0
+    margin-top:15px;
0
+    margin-bottom:5px;
0
 }
0
-      
0
+
0
 #sidebar ul {
0
-      margin-left: auto;
0
-      list-style-position: inside;
0
-      }
0
-      
0
+    margin-left: auto;
0
+    list-style-position: inside;
0
+}
0
+
0
 li {
0
-      font-size: 1.1em;
0
-      padding: 3px 0px;
0
-      }
0
+    font-size: 1.1em;
0
+    padding: 3px 0px;
0
+}
0
 #sidebar li {
0
-      padding: auto;
0
-      }
0
+    padding: auto;
0
+}
0
 #sidebar .integrations-link {
0
-  margin-top:10px;
0
-  padding-top:10px;
0
-  font-size: 0.8em;
0
+    margin-top:10px;
0
+    padding-top:10px;
0
+    font-size: 0.8em;
0
 }
0
 .sortable_row {
0
-      background: #fff;
0
-      _background: transparent;
0
-      padding: 4px 4px 4px 8px;
0
-      margin: 2px 2px;
0
-      border: 1px solid #ccc;
0
-      }
0
+    background: #fff;
0
+    _background: transparent;
0
+    padding: 4px 4px 4px 8px;
0
+    margin: 2px 2px;
0
+    border: 1px solid #ccc;
0
+}
0
 
0
 .edit-form {
0
-      background: #ccc;
0
-      padding: 0 10px;
0
-      border-top: 1px solid #999;
0
-      border-bottom: 1px solid #999;
0
-      position:relative;
0
-      }
0
+    background: #ccc;
0
+    padding: 0 10px;
0
+    border-top: 1px solid #999;
0
+    border-bottom: 1px solid #999;
0
+    position:relative;
0
+}
0
 
0
 /* Right align labels in forms */
0
 .label {
0
-      text-align: right;
0
-      }
0
-      
0
+    text-align: right;
0
+}
0
+
0
 input {
0
-      vertical-align: middle;
0
+    vertical-align: middle;
0
 }
0
 
0
 /* Positioning the 'cells' in the list */
0
@@ -587,47 +668,47 @@ img.position, a:hover img.position {
0
     text-align: left;
0
     vertical-align: middle;
0
     background-color: transparent;
0
-    }
0
-    
0
+}
0
+
0
 .data {
0
     text-align: left;
0
     margin-left: 20px;
0
     float: left;
0
-    }
0
-    
0
+}
0
+
0
 div.buttons, div.buttons a, div.buttons a:hover {
0
     text-align: right;
0
     margin-right: 0px;
0
     vertical-align: middle;
0
     background-color: transparent;
0
-    }
0
+}
0
 
0
 div#list-active-projects, div#list-hidden-projects, div#list-completed-projects, div#list-contexts, div#projects-empty-nd {
0
     clear:right;
0
-  border: 1px solid #999;
0
-    }
0
+    border: 1px solid #999;
0
+}
0
 .project-state-group h2 {
0
-  margin:20px 0px 8px 13px;
0
+    margin:20px 0px 8px 13px;
0
 }
0
 
0
 .search-result-group h2 {
0
-        margin:20px 0px 8px 13px
0
+    margin:20px 0px 8px 13px
0
 }
0
 
0
 div.alpha_sort {
0
-  margin-top:-20px;
0
-  float:right;
0
+    margin-top:-20px;
0
+    float:right;
0
 }
0
 
0
-    
0
+
0
 .container td {
0
     border: none;
0
     padding-bottom: 5px;
0
-    }
0
+}
0
 
0
 .container form {
0
     border: none;
0
-    }
0
+}
0
 
0
 div.project_description {
0
     background: #eee;
0
@@ -640,48 +721,52 @@ div.project_description {
0
     font-size: 12px;
0
     font-weight: normal;
0
     /* Uncomment line below if you want the description to have
0
-       shadowed text */
0
+    shadowed text */
0
     /* text-shadow: rgba(0,0,0,.4) 0px 2px 5px; */
0
-    }
0
+}
0
 #project-next-prev {
0
-  text-align:right;
0
+    text-align:right;
0
 }
0
-    
0
+
0
 /* Form elements */
0
 form {
0
     border: 1px solid #CCC;
0
     padding: 10px;
0
     margin: 0px;
0
-    }
0
+}
0
 .inline-form {
0
     border: none;
0
     padding: 3px;
0
-    }
0
+}
0
 
0
 .inline-form table {
0
     padding-right: 3px;
0
-    }
0
+}
0
 
0
 /* expand form contents to fill the whole form */
0
 .inline-form table,
0
 .inline-form textarea#item_notes, 
0
 .inline-form input#item_description {
0
     width: 100%;
0
-    }
0
+}
0
 
0
 /* shrink the label/left column as small as necessary */
0
 .inline-form table td.label {
0
     width: 13ex;
0
-    }
0
-#todo_new_action_container, #project_new_project_container, #context_new_container {
0
-  background: #ddd;
0
-  width: 270px;
0
-  padding: 5px 10px;
0
-  background-color: #000;
0
-  filter: alpha(opacity=75);
0
-  -moz-opacity: .75;
0
-  opacity: .75;
0
-  color: #eee;
0
+}
0
+#todo_new_action_container, #project_new_project_container, #context_new_container, #recurring_new_container {
0
+    background: #ddd;
0
+    width: 270px;
0
+    padding: 5px 10px;
0
+    background-color: #000;
0
+    filter: alpha(opacity=75);
0
+    -moz-opacity: .75;
0
+    opacity: .75;
0
+    color: #eee;
0
+}
0
+
0
+#recurring_new_container img {
0
+    vertical-align: middle;
0
 }
0
 
0
 #project_new_project_filler {
0
@@ -693,7 +778,7 @@ form {
0
 #project_new_project_container input,
0
 #project_new_project_container textarea,
0
 #context_new_container input  {
0
-  width: 100%;
0
+    width: 100%;
0
 }
0
 
0
 input#go_to_project, input#context_hide {
0
@@ -701,47 +786,47 @@ input#go_to_project, input#context_hide {
0
 }
0
 
0
 #todo_new_action_container .show_from_input, #todo_new_action_container .due_input {
0
-  width: 45%;
0
+    width: 45%;
0
 }
0
 
0
 #todo_new_action_container .show_from_input {
0
-  float: right;
0
+    float: right;
0
 }
0
 
0
 #todo-form-new-action .submit_box, #project_form .submit_box, #context_form .submit_box {
0
-  height: 25px;
0
-  padding: 5px 0;
0
-  text-align: center;
0
-  clear: right;
0
+    height: 25px;
0
+    padding: 5px 0;
0
+    text-align: center;
0
+    clear: right;
0
 }
0
 
0
 .edit_todo_form .submit_box {
0
-  height: 25px;
0
-  padding: 5px 0;
0
-  text-align: center;
0
-  clear: right;
0
+    height: 25px;
0
+    padding: 5px 0;
0
+    text-align: center;
0
+    clear: right;
0
 }
0
 
0
 .edit_todo_form input, .edit_todo_form textarea {
0
-  width:100%;
0
+    width:100%;
0
 }
0
 
0
 .edit_todo_form .tag_list_label {
0
-  clear:both;
0
+    clear:both;
0
 }
0
 .edit_todo_form .due_input, .edit_todo_form .show_from_input, .edit_todo_form .project_input, .edit_todo_form .context_input {
0
-  width:48%;
0
+    width:48%;
0
 }
0
 
0
 .edit_todo_form .show_from_input, .edit_todo_form .context_input {
0
-  float: right;
0
+    float: right;
0
 }
0
 
0
 .edit_todo_form .submit_box input {
0
-  width:120px;
0
+    width:120px;
0
 }
0
 .hide_form {
0
-  text-align:right;
0
+    text-align:right;
0
 }
0
 #todo-form-new-action label, .edit_todo_form label {
0
     display: block;
0
@@ -749,20 +834,20 @@ input#go_to_project, input#context_hide {
0
 }
0
 
0
 form.button-to {
0
-  border: none;
0
-  padding: 0px;
0
-  margin: 0px;
0
+    border: none;
0
+    padding: 0px;
0
+    margin: 0px;
0
 }
0
 
0
 label {
0
     font-weight: bold;
0
     padding: 0px 0px;
0
-    }
0
-    
0
+}
0
+
0
 input, select, textarea {
0
     margin: 0px 0px 5px 0px;
0
-    }
0
-    
0
+}
0
+
0
 .feed {
0
     font-family: verdana, sans-serif; 
0
     font-size: 10px; 
0
@@ -774,13 +859,13 @@ input, select, textarea {
0
     border-color: #FC9 #630 #330 #F96; 
0
     padding:0px 3px 0px 3px; 
0
     margin:0px;
0
-    }
0
-    
0
+}
0
+
0
 /* Classes for Drag and Drop */
0
 .position {
0
     float: left;
0
-  margin-top:2px;
0
-    }
0
+    margin-top:2px;
0
+}
0
 .handle {
0
     color: #fff;
0
     background: #000;
0
@@ -790,180 +875,180 @@ input, select, textarea {
0
 }
0
 
0
 div.message {
0
-  margin: 5px 0px; 
0
-  background: #FAF4B5;
0
-  padding: 2px;
0
+    margin: 5px 0px; 
0
+    background: #FAF4B5;
0
+    padding: 2px;
0
 }
0
 
0
 .message p {
0
-  margin: 0px;
0
-  padding: 0px;
0
-  text-align: center;
0
-  font-size: 1em;
0
-  color: #666;
0
+    margin: 0px;
0
+    padding: 0px;
0
+    text-align: center;
0
+    font-size: 1em;
0
+    color: #666;
0
 }
0
 
0
 /* Error message styles */
0
 .fieldWithErrors {
0
-  padding: 2px;
0
-  background-color: red;
0
-  display: table;
0
+    padding: 2px;
0
+    background-color: red;
0
+    display: table;
0
 }
0
 
0
 #errorExplanation {
0
-  border: 2px solid #ff0000;
0
-  padding: 7px;
0
-  padding-bottom: 12px;
0
-  margin: 10px auto 20px auto;
0
-  background-color: #f0f0f0;
0
+    border: 2px solid #ff0000;
0
+    padding: 7px;
0
+    padding-bottom: 12px;
0
+    margin: 10px auto 20px auto;
0
+    background-color: #f0f0f0;
0
 }
0
 
0
 #errorExplanation h2 {
0
-  text-align: left;
0
-  font-weight: bold;
0
-  padding: 5px 5px 5px 15px;
0
-  font-size: 12px;
0
-  margin: -7px;
0
-  background-color: #c00;
0
-  color: #fff;
0
+    text-align: left;
0
+    font-weight: bold;
0
+    padding: 5px 5px 5px 15px;
0
+    font-size: 12px;
0
+    margin: -7px;
0
+    background-color: #c00;
0
+    color: #fff;
0
 }
0
 
0
 #errorExplanation > p {
0
-  color: #333;
0
-  margin-top: 5px;
0
-  margin-bottom: 0;
0
-  padding: 5px;
0
+    color: #333;
0
+    margin-top: 5px;
0
+    margin-bottom: 0;
0
+    padding: 5px;
0
 }
0
 
0
 #errorExplanation ul li {
0
-  font-size: 1em;
0
-  list-style-type: disc;
0
-  list-style-position: inside;
0
-  margin-left:7px;
0
-  color: #333; 
0
+    font-size: 1em;
0
+    list-style-type: disc;
0
+    list-style-position: inside;
0
+    margin-left:7px;
0
+    color: #333; 
0
 }
0
 
0
 ul#prefs {list-style-type: disc; margin-left: 15px;}
0
 #token_area, #authentication_area {
0
-  text-align:center;
0
-  margin-top:20px;
0
-  margin-bottom:10px;
0
+    text-align:center;
0
+    margin-top:20px;
0
+    margin-bottom:10px;
0
 }
0
 #token_area .description{ 
0
-  font-weight:bold;
0
+    font-weight:bold;
0
 }
0
 #token_area form {
0
-  width:100%;
0
-  text-align:center;
0
+    width:100%;
0
+    text-align:center;
0
 }
0
 .prefscontainer .actions {
0
-  text-align:center;
0
-  margin-bottom:20px;
0
+    text-align:center;
0
+    margin-bottom:20px;
0
 }
0
 .authtype_container .actions {
0
-  margin-top:20px;
0
-  margin-bottom:20px;  
0
+    margin-top:20px;
0
+    margin-bottom:20px;  
0
 }
0
 #feedlegend {
0
-  padding: 2px;
0
-  border: 1px solid #CCC; 
0
-  background-color: #D2D3D6;
0
-  color: #666;
0
-  padding: 5px 20px;
0
-  text-align: left;
0
+    padding: 2px;
0
+    border: 1px solid #CCC; 
0
+    background-color: #D2D3D6;
0
+    color: #666;
0
+    padding: 5px 20px;
0
+    text-align: left;
0
 }
0
 #feedlegend h3, #feedlegend dl, #feedlegend dt, #feedlegend dd {
0
-  display: inline;
0
+    display: inline;
0
 }
0
 #feedlegend dt {
0
-  margin-left: 15px;
0
+    margin-left: 15px;
0
 }
0
 #feedlegend dd {
0
-  margin-left: 3px;
0
+    margin-left: 3px;
0
 }
0
 #feedlegend p {
0
-  margin-bottom: 0px;
0
+    margin-bottom: 0px;
0
 }
0
 #feeds img.rss-icon {
0
-  margin-bottom: -4px;
0
+    margin-bottom: -4px;
0
 }
0
 #feeds li {
0
-  font-size:13px;
0
-  font-family: "Lucida Grande", Verdana, Geneva, Arial, sans-serif;
0
+    font-size:13px;
0
+    font-family: "Lucida Grande", Verdana, Geneva, Arial, sans-serif;
0
 }
0
 #feeds li h4 {
0
-  margin-top: 12px;
0
-  margin-bottom: 4px;
0
-  font-weight: normal;
0
-  font-style:oblique;
0
+    margin-top: 12px;
0
+    margin-bottom: 4px;
0
+    font-weight: normal;
0
+    font-style:oblique;
0
 }
0
 input.open_id {
0
-   background: url(../images/open-id-login-bg.gif) no-repeat; 
0
-   background-color: #fff; 
0
-   background-position: 0 50%;
0
-   color: #000;
0
-   padding-left: 18px;
0
-   width:182px;
0
+    background: url(../images/open-id-login-bg.gif) no-repeat; 
0
+    background-color: #fff; 
0
+    background-position: 0 50%;
0
+    color: #000;
0
+    padding-left: 18px;
0
+    width:182px;
0
 }
0
 div.page_name_auto_complete {
0
-  width: 100%;
0
-  background: #fff;
0
-  display: inline;
0
-        z-index: 100;
0
+    width: 100%;
0
+    background: #fff;
0
+    display: inline;
0
+    z-index: 100;
0
 }
0
 
0
 div.page_name_auto_complete ul {
0
-  border: 1px solid #888;
0
-  margin: 0;
0
-  padding: 0;
0
-  width: 100%;
0
-  list-style-type: none;
0
+    border: 1px solid #888;
0
+    margin: 0;
0
+    padding: 0;
0
+    width: 100%;
0
+    list-style-type: none;
0
 }
0
 
0
 div.page_name_auto_complete ul li {
0
-  margin: 0;
0
-  padding: 2px;
0
-  font-weight:bold;
0
-  list-style-type: none;
0
-  color: #000;
0
+    margin: 0;
0
+    padding: 2px;
0
+    font-weight:bold;
0
+    list-style-type: none;
0
+    color: #000;
0
 }
0
 
0
 div.page_name_auto_complete ul li.selected { 
0
-  background-color: #ffb; 
0
+    background-color: #ffb; 
0
 }
0
 
0
 div.page_name_auto_complete ul strong.highlight { 
0
-  color: #800; 
0
-  margin: 0;
0
-  padding: 0;
0
+    color: #800; 
0
+    margin: 0;
0
+    padding: 0;
0
 }
0
 
0
 table.next_actions td {
0
-  padding:5px 3px 2px 0px;
0
+    padding:5px 3px 2px 0px;
0
 }
0
 
0
 table.users_table {
0
-  width: 100%;
0
-  text-align: center;
0
-  border: 1px solid #666;
0
-  background-color: #fff;
0
-  border-spacing: 0px;
0
+    width: 100%;
0
+    text-align: center;
0
+    border: 1px solid #666;
0
+    background-color: #fff;
0
+    border-spacing: 0px;
0
 }
0
 
0
 .users_table th {color: #fff; background-color: #000;}
0
 .users_table td {border: none;}
0
 
0
 table.export_table {
0
-  border: 1px solid #666;
0
-  background-color: #fff;
0
-  border-spacing: 0px;    
0
+    border: 1px solid #666;
0
+    background-color: #fff;
0
+    border-spacing: 0px;    
0
 }
0
 
0
 .export_table th {color: #fff; background-color: #000;}
0
 .export_table td {border: 1px; padding: 5px 0px 5px 5px;}
0
 
0
 /* Submit button styling from ParticleTree
0
-    http://particletree.com/features/rediscovering-the-button-element/ */
0
+http://particletree.com/features/rediscovering-the-button-element/ */
0
 
0
 .widgets a, .widgets button{
0
     display:block;
0
@@ -973,7 +1058,7 @@ table.export_table {
0
     border:1px solid #dedede;
0
     border-top:1px solid #eee;
0
     border-left:1px solid #eee;
0
-
0
+    
0
     font-family:"Lucida Grande", Verdana, Geneva, Arial, sans-serif;
0
     font-size:80%;
0
     line-height:100%;
0
@@ -1047,61 +1132,61 @@ button.positive, .widgets a.positive{
0
     color:#fff;
0
 }
0
 .tracks__waiting {
0
-  background-image:url('../images/waiting.gif');
0
-  background-repeat:no-repeat;
0
-  background-position:center center;
0
-  background-color:white;
0
+    background-image:url('../images/waiting.gif');
0
+    background-repeat:no-repeat;
0
+    background-position:center center;
0
+    background-color:white;
0
 }
0
 
0
 .bigWaiting {
0
-  background-image:url('../images/bigWaiting.gif');
0
-  background-repeat:no-repeat;
0
-  background-position:center 20%;
0
-  background-color:white;
0
+    background-image:url('../images/bigWaiting.gif');
0
+    background-repeat:no-repeat;
0
+    background-position:center 20%;
0
+    background-color:white;
0
 }
0
 
0
 .blackWaiting {
0
-  background-image:url('../images/blackWaiting.gif');
0
-  background-repeat:no-repeat;
0
-  background-position:center center;
0
-  background-color:black;
0
+    background-image:url('../images/blackWaiting.gif');
0
+    background-repeat:no-repeat;
0
+    background-position:center center;
0
+    background-color:black;
0
 }
0
 
0
 .bigBlackWaiting {
0
-  background-image:url('../images/bigBlackWaiting.gif');
0
-  background-repeat:no-repeat;
0
-  background-position:center center;
0
-  background-color:black;
0
+    background-image:url('../images/bigBlackWaiting.gif');
0
+    background-repeat:no-repeat;
0
+    background-position:center center;
0
+    background-color:black;
0
 }
0
 .stats_content .open-flash-chart, .stats_content .stats_module {
0
-  float: left;
0
-  width: 450px;
0
-  margin-right:20px;
0
-  padding-bottom:20px;
0
+    float: left;
0
+    width: 450px;
0
+    margin-right:20px;
0
+    padding-bottom:20px;
0
 }
0
 .stats_content h2
0
 {
0
-  clear:both;
0
-  margin-top:15px;
0
-  margin-bottom:15px;
0
+    clear:both;
0
+    margin-top:15px;
0
+    margin-bottom:15px;
0
 }
0
 body.integrations h2 {
0
-  margin-top:40px;
0
-  padding-top:20px;
0
-  margin-bottom:10px;
0
-  border-top:1px solid #ccc;
0
+    margin-top:40px;
0
+    padding-top:20px;
0
+    margin-bottom:10px;
0
+    border-top:1px solid #ccc;
0
 }
0
 body.integrations p, body.integrations li {
0
-  font-size:1.0em;
0
+    font-size:1.0em;
0
 }
0
 body.integrations li {
0
-  list-style-type: disc;
0
-  list-style-position: inside;
0
-  margin-left:30px;  
0
+    list-style-type: disc;
0
+    list-style-position: inside;
0
+    margin-left:30px;  
0
 }
0
 body.integrations textarea {
0
-  margin:10px;
0
-  padding:3px;
0
-  width:80%;
0
-  background-color:#ddd;
0
+    margin:10px;
0
+    padding:3px;
0
+    width:80%;
0
+    background-color:#ddd;
0
 }
0
\ No newline at end of file

Comments