"
- end
- end
-
- def calendar_setup( input_field )
- str = "Calendar.setup({ ifFormat:\"#{ApplicationController::DATE_FORMAT}\""
- str << ",firstDay:#{ApplicationController::WEEK_STARTS_ON},showOthers:true,range:[2004, 2010]"
- str << ",step:1,inputField:\"" + input_field + "\",cache:true,align:\"TR\" })"
- javascript_tag str
- end
-
end
diff --git a/tracks/app/helpers/todo_helper.rb b/tracks/app/helpers/todo_helper.rb
index 0b4096b8..d00d8349 100644
--- a/tracks/app/helpers/todo_helper.rb
+++ b/tracks/app/helpers/todo_helper.rb
@@ -1,29 +1,36 @@
module TodoHelper
- # Counts the number of uncompleted items in the selected context
+ # Counts the number of uncompleted items in the specified context
#
def count_items(context)
count = Todo.find_all("done=0 AND context_id=#{context.id}").length
end
- def form_remote_tag_todo_notdone( item )
- form_remote_tag( :url => url_for( :controller => "todo", :action => "toggle_check", :id => item.id ),
- :html => { :id=> "checkbox-notdone-#{item.id}", :class => "inline-form" },
- :update => "completed",
- :position => "top",
- :loading => "Form.disable('checkbox-notdone-#{item.id}');",
- :complete => visual_effect(:fade, "item-#{item.id}-container")
- )
- end
+ def form_remote_tag_toggle_todo( item )
+ target_div = item.done? ? "new_actions" : "completed"
+ target_position = item.done? ? "bottom" : "top"
+ form_id = "checkbox-#{item.id}-form"
+ item_container_id = "item-#{item.id}-container"
+
+ loading_javascript = "Form.disable('#{form_id}');"
+ if item.done?
+ loading_javascript << visual_effect(:appear, "new_actions", :duration => 0.4)
+ end
+
+ success_javascript = " $('#{item_container_id}').setAttribute('id','#{item_container_id}-fading');"
+ success_javascript << visual_effect( :fade, "#{item_container_id}-fading",
+ {
+ :duration => 0.4,
+ :afterFinish => "function(effect) { Element.remove('#{item_container_id}-fading'); }"
+ })
- def form_remote_tag_todo_done( item )
form_remote_tag( :url => url_for( :controller => "todo", :action => "toggle_check", :id => item.id ),
- :html => { :id=> "checkbox-done-#{item.id}", :class => "inline-form" },
- :update => "new_actions",
- :position => "bottom",
- :loading => "Form.disable('checkbox-done-#{item.id}');",
- :complete => "Element.toggle('new_actions');new Effect.Fade('done-item-#{item.id}-container');"
- )
+ :html => { :id=> "#{form_id}", :class => "inline-form item-checkmark-form" },
+ :update => target_div,
+ :position => target_position,
+ :loading => loading_javascript,
+ :success => success_javascript,
+ :complete => visual_effect( :highlight, item_container_id))
end
def form_remote_tag_edit_todo( item )
@@ -33,27 +40,82 @@ module TodoHelper
:complete => visual_effect(:appear, "item-#{item.id}-container")
)
end
-
- def link_to_remote_todo_notdone( item )
- str = "Element.toggle('item-#{item.id}','action-#{item.id}-edit-form');"
- str << " new Effect.Appear('action-#{item.id}-edit-form');"
- str << " Form.focusFirstElement('form-action-#{item.id}')"
- link_to_remote( image_tag("blank", :title =>"Delete action", :class=>"delete_item"),
- :update => "item-#{item.id}-container",
- :loading => visual_effect(:fade, "item-#{item.id}-container"),
- :url => { :controller => "todo", :action => "destroy_action", :id => item.id },
- :confirm => "Are you sure that you want to delete the action, \'#{item.description}\'?") + " " +
- link_to_function(image_tag( "blank", :title => "Edit action", :class => "edit_item"),
- str ) + " "
+
+ def link_to_remote_todo( item )
+ str = link_to_remote( image_tag("blank", :title =>"Delete action", :class=>"delete_item"),
+ {
+ :update => "item-#{item.id}-container",
+ :loading => visual_effect(:fade, "item-#{item.id}-container"),
+ :url => { :controller => "todo", :action => "destroy_action", :id => item.id },
+ :confirm => "Are you sure that you want to delete the action, \'#{item.description}\'?"
+ },
+ {
+ :class => "icon"
+ }) + "\n"
+ if !item.done?
+ str << link_to_remote( image_tag("blank", :title =>"Edit action", :class=>"edit_item", :id=>"action-#{item.id}-edit-icon"),
+ {
+ :update => "form-action-#{item.id}",
+ :loading => visual_effect(:pulsate, "action-#{item.id}-edit-icon"),
+ :url => { :controller => "todo", :action => "edit_action", :id => item.id },
+ :success => "Element.toggle('item-#{item.id}','action-#{item.id}-edit-form'); new Effect.Appear('action-#{item.id}-edit-form', { duration: .2 }); Form.focusFirstElement('form-action-#{item.id}')"
+ },
+ {
+ :class => "icon"
+ })
+ else
+ str << '
' + image_tag("blank") + " "
+ end
+ str
+ end
+
+ # Uses the 'staleness_starts' value from settings.yml (in days) to colour
+ # the background of the action appropriately according to the age
+ # of the creation date:
+ # * l1: created more than 1 x staleness_starts, but < 2 x staleness_starts
+ # * l2: created more than 2 x staleness_starts, but < 3 x staleness_starts
+ # * l3: created more than 3 x staleness_starts
+ #
+ def staleness_class(item)
+ if item.due || item.done
+ return ""
+ elsif item.created_at < (ApplicationController::STALENESS_STARTS*3).days.ago
+ return " stale_l3"
+ elsif item.created_at < (ApplicationController::STALENESS_STARTS*2).days.ago
+ return " stale_l2"
+ elsif item.created_at < (ApplicationController::STALENESS_STARTS).days.ago
+ return " stale_l1"
+ else
+ return ""
+ end
end
- def link_to_remote_todo_done( item )
- link_to_remote( image_tag("blank", :title =>"Delete action", :class=>"delete_item"),
- :update => "done-item-#{item.id}-container",
- :loading => visual_effect(:fade, "done-item-#{item.id}-container"),
- :url => { :controller => "todo", :action => "destroy_action", :id => item.id },
- :confirm => "Are you sure that you want to delete the action \'#{item.description}\'?" ) +
- "
" + image_tag("blank") + " "
+ # Check due date in comparison to today's date
+ # Flag up date appropriately with a 'traffic light' colour code
+ #
+ def due_date(due)
+ if due == nil
+ return ""
+ end
+
+ @now = Date.today
+ @days = due-@now
+
+ case @days
+ # overdue or due very soon! sound the alarm!
+ when -365..-1
+ "
Overdue by " + (@days * -1).to_s + " days "
+ when 0
+ "
Due Today "
+ when 1
+ "
Due Tomorrow "
+ # due 2-7 days away
+ when 2..7
+ "
Due in " + @days.to_s + " days "
+ # more than a week away - relax
+ else
+ "
Due in " + @days.to_s + " days "
+ end
end
def toggle_show_notes( item )
@@ -62,8 +124,16 @@ module TodoHelper
str << "')\" class=\"show_notes\" title=\"Show notes\">"
str << image_tag( "blank", :width=>"16", :height=>"16", :border=>"0" ) + ""
m_notes = markdown( item.notes )
- str << "
"
+ str << "\n
"
str << m_notes + "
"
str
end
+
+ def calendar_setup( input_field )
+ str = "Calendar.setup({ ifFormat:\"#{ApplicationController::DATE_FORMAT}\""
+ str << ",firstDay:#{ApplicationController::WEEK_STARTS_ON},showOthers:true,range:[2004, 2010]"
+ str << ",step:1,inputField:\"" + input_field + "\",cache:true,align:\"TR\" })"
+ javascript_tag str
+ end
+
end
diff --git a/tracks/app/views/context/show.rhtml b/tracks/app/views/context/show.rhtml
index 9186318d..e0461ef8 100644
--- a/tracks/app/views/context/show.rhtml
+++ b/tracks/app/views/context/show.rhtml
@@ -1,42 +1,7 @@
-
-
<%= sanitize(@context.name) %>
-
-
- <% if @not_done.empty? -%>
-
- <%= render :partial => "empty",
- :locals => { :message => "There are currently no uncompleted actions in this context"} %>
-
- <% else -%>
-
- <%= render :partial => "empty",
- :locals => { :message => "There are currently no uncompleted actions in this context"} %>
-
- <% end -%>
- <%= render :partial => "show_items", :collection => @not_done %>
-
-
-
-
-
Completed actions in this context
-
-
- <% if @done.empty? %>
-
- <%= render :partial => "empty",
- :locals => {:message => "There are currently no completed next actions in this context"} %>
-
- <% else -%>
-
- <%= render :partial => "empty",
- :locals => { :message => "There are currently no uncompleted actions in this context"} %>
-
- <% end -%>
- <%= render :partial => "show_items", :collection => @done %>
-
-
+<%= render :partial => "context/context", :locals => { :context => @context, :collapsible => false } %>
+<%= render :partial => "todo/completed", :locals => { :done => @done, :collapsible => false, :append_descriptor => "in this context" } %>
diff --git a/tracks/app/views/layouts/standard.rhtml b/tracks/app/views/layouts/standard.rhtml
index 3f103ec3..dbdc8c6e 100644
--- a/tracks/app/views/layouts/standard.rhtml
+++ b/tracks/app/views/layouts/standard.rhtml
@@ -9,6 +9,7 @@
<%= stylesheet_link_tag 'calendar-system.css' %>
<%= javascript_include_tag 'calendar', 'calendar-en', 'calendar-setup' %>
<%= javascript_include_tag "accesskey-hints" %>
+ <%= javascript_include_tag "todo-items" %>
<%= auto_discovery_link_tag(:rss,{:controller => "feed", :action => "na_feed", :name => "#{@session['user']['login']}", :token => "#{@session['user']['word']}"}, {:title => "RSS feed of next actions"}) %>
diff --git a/tracks/app/views/note/_notes.rhtml b/tracks/app/views/note/_notes.rhtml
index 5b15204d..cbb3a936 100644
--- a/tracks/app/views/note/_notes.rhtml
+++ b/tracks/app/views/note/_notes.rhtml
@@ -8,11 +8,11 @@
diff --git a/tracks/app/views/note/_notes_summary.rhtml b/tracks/app/views/note/_notes_summary.rhtml
index 752aa4e3..eb597f30 100644
--- a/tracks/app/views/note/_notes_summary.rhtml
+++ b/tracks/app/views/note/_notes_summary.rhtml
@@ -1,7 +1,7 @@
<% note = notes_summary -%>
-<%= link_to( image_tag("blank"), { :controller => "note", :action => "show",
- :id => note.id}, :title => "Show note", :class => "show_notes" ) %>
+<%= link_to( image_tag("blank", :border => 0), { :controller => "note", :action => "show",
+ :id => note.id}, :title => "Show note", :class => "show_notes icon") %>
<%= sanitize(textilize(truncate(note.body, 50, "..."))) %>
<% note = nil -%>
diff --git a/tracks/app/views/note/index.rhtml b/tracks/app/views/note/index.rhtml
index 9638074c..03919b43 100644
--- a/tracks/app/views/note/index.rhtml
+++ b/tracks/app/views/note/index.rhtml
@@ -1,6 +1,6 @@
<% for notes in @all_notes -%>
-
+
<%= render_partial "notes", notes %>
<% end -%>
diff --git a/tracks/app/views/note/show.rhtml b/tracks/app/views/note/show.rhtml
index 5a350a1a..157ce3b4 100644
--- a/tracks/app/views/note/show.rhtml
+++ b/tracks/app/views/note/show.rhtml
@@ -1,5 +1,5 @@
-
+
<%= render_partial "notes", @note %>
\ No newline at end of file
diff --git a/tracks/app/views/project/show.rhtml b/tracks/app/views/project/show.rhtml
index d8d760d5..ba478be9 100644
--- a/tracks/app/views/project/show.rhtml
+++ b/tracks/app/views/project/show.rhtml
@@ -1,51 +1,18 @@
-
-
<%= sanitize(@project.name) %>
-<% if @project.description -%>
-
<%= sanitize(@project.description) %>
-<% end -%>
+<%= render :partial => "project/project", :locals => { :project => @project, :collapsible => false } %>
+<%= render :partial => "todo/completed", :locals => { :done => @done, :collapsible => false, :append_descriptor => "in this project" } %>
- <% if @msg_nd -%>
-
- <% end -%>
-
-
- <% if @project.done? -%>
-
Project has been marked as completed
- <% end -%>
- <%= render :partial => "show_items", :collection => @not_done %>
-
-
-
-
-
Completed actions in this project
-
-
- <% if @msg_d -%>
-
- <% end -%>
- <%= render :partial => "show_items", :collection => @done %>
-
-
-
-
-
+
Notes
- <% if @msg_n -%>
-
- <% end -%>
+
+ <%= render :partial => "shared/empty",
+ :locals => { :message => "Currently there are no notes attached to this project"} %>
+
<%= render :partial => "note/notes_summary", :collection => @notes %>
-
<% if @project.done? -%>
<%= button_to "Mark project as uncompleted", {:action => "toggle_project_done", :id => @project.id} %>
@@ -59,8 +26,7 @@
<%= form_remote_tag :url => { :controller => "note", :action => "add" },
:update => "notes",
:position => "bottom",
- :complete => "new Effect.Highlight('notes');
- Element.hide('message-notes');",
+ :complete => "new Effect.Highlight('notes');",
:html => {:id=>'form-new-note', :class => 'inline-form'} %>
<%= hidden_field( "new_note", "project_id", "value" => "#{@project.id}" ) %>
<%= text_area( "new_note", "body", "cols" => 50, "rows" => 3, "tabindex" => 1 ) %>
diff --git a/tracks/app/views/shared/add_new_item_form.rhtml b/tracks/app/views/shared/add_new_item_form.rhtml
index e5b94fdc..be953fac 100644
--- a/tracks/app/views/shared/add_new_item_form.rhtml
+++ b/tracks/app/views/shared/add_new_item_form.rhtml
@@ -2,10 +2,10 @@
case controller.controller_name
when "context"
add_string = "Add a next action in this context »"
- update_div = "next_actions"
+ update_div = "c" + @context.id.to_s
when "project"
add_string = "Add a next action in this project »"
- update_div = "next_actions"
+ update_div = "p" + @project.id.to_s
else
add_string = "Add a next action »"
update_div = "new_actions"
@@ -14,7 +14,7 @@
<%= link_to_function(
add_string,
-"Element.toggle('todo_new_action');Form.focusFirstElement('todo-form-new-action');Element.toggle('new_actions');",
+"Element.toggle('todo_new_action');Form.focusFirstElement('todo-form-new-action');",
{:title => "Add the next action", :accesskey => "n"}) %>
@@ -23,8 +23,8 @@
:url => { :controller => "todo", :action => "add_item" },
:update => update_div,
:position => "bottom",
- :complete => "Form.focusFirstElement('todo-form-new-action');
- Element.remove('message-notdone');",
+ :loading => "ensureVisibleWithEffectAppear('#{update_div}');",
+ :complete => "Form.focusFirstElement('todo-form-new-action');",
:html=> { :id=>'todo-form-new-action', :name=>'todo', :class => 'inline-form' }) %>
Description
diff --git a/tracks/app/views/todo/_item.rhtml b/tracks/app/views/todo/_item.rhtml
index a53639d7..76dfe188 100644
--- a/tracks/app/views/todo/_item.rhtml
+++ b/tracks/app/views/todo/_item.rhtml
@@ -1,66 +1,32 @@
-<% if !item.done? %>
-
-
- <%= form_remote_tag_todo_notdone( item ) %>
-
-
- <%= link_to_remote_todo_notdone( item ) %>
-
-
-
-
-
- <% if item.due %>
-
- <% else %>
- <%= staleness( item ) %>
- <% end %>
- <%= due_date( item.due ) %>
- <%= sanitize(item.description) %>
-
- <% if @params["project"] == "true" %>
- <%= link_to( "[C]", { :controller => "context", :action => "show", :name => urlize(item.context.name) }, :title => "View context: #{item.context.name}" ) %>
- <% else %>
- <% if item.project_id %>
- <%= link_to( "[P]", { :controller => "project", :action => "show", :name => urlize(item.project.name) }, :title => "View project: #{item.project.name}" ) %>
- <% end %>
- <% end %>
-
- <% if item.notes? %>
- <%= toggle_show_notes( item ) %>
- <% end %>
-
-
-<%= end_form_tag %>
-
-
- <%= form_remote_tag_edit_todo( item ) %>
- <%= render :partial => 'todo/action_edit_form', :object => item %>
- <%= end_form_tag %>
-
-
-
-<% else %>
-
- <%= form_remote_tag_todo_done( item ) %>
-
-
<%= link_to_remote_todo_done( item ) %>
-
-
-
-
-
-
- <%= format_date( item.completed ) %>
- <%= sanitize(item.description) %>
- <% if item.project_id %>
- <%= link_to( "[P]", { :controller => "project", :action => "show", :name => urlize(item.project.name) }, :title => "View project: #{item.project.name}" ) %>
- <% end %>
- <% if item.notes? %>
- <%= toggle_show_notes( item ) %>
- <% end %>
-
+
+
+ <%= form_remote_tag_toggle_todo( item ) %>
+ <%= form_tag( { :controller => "todo", :action => "toggle_check", :id => item.id },
+ { :class => "inline-form" }) %>
+ <%= link_to_remote_todo( item ) %>
+
checked="checked" <% end %> />
+
<% # start of div which has a class 'description', and possibly 'stale_11', 'stale_12', 'stale_13' etc %>
+<% if item.done? -%>
+ <%= format_date( item.completed ) %>
+<% else -%>
+ <%= due_date( item.due ) -%>
+<% end -%>
+ <%= sanitize(item.description) %>
+<% if project -%>
+ <%= link_to( "[C]", { :controller => "context", :action => "show", :name => urlize(item.context.name) }, :title => "View context: #{item.context.name}" ) %>
+<% elsif item.project_id -%>
+ <%= link_to( "[P]", { :controller => "project", :action => "show", :name => urlize(item.project.name) }, :title => "View project: #{item.project.name}" ) %>
+<% end -%>
+<% if item.notes? -%>
+ <%= toggle_show_notes( item ) %>
+<% end -%>
+
+ <%= end_form_tag %>
-<%= end_form_tag %>
-
-<% end %>
+
+ <%= form_remote_tag_edit_todo( item ) -%>
+ <% #note: edit form will load here remotely -%>
+ <%= end_form_tag -%>
+
+
+
\ No newline at end of file
diff --git a/tracks/app/views/todo/completed.rhtml b/tracks/app/views/todo/completed.rhtml
index 263f1be2..98909740 100644
--- a/tracks/app/views/todo/completed.rhtml
+++ b/tracks/app/views/todo/completed.rhtml
@@ -1,20 +1,20 @@
You have completed <%= @done_today.length %> actions so far today.
-
+
Completed today
<%= render :partial => "done", :collection => @done_today %>
-
+
Completed in last 7 days
<%= render :partial => "done", :collection => @done_this_week %>
-
Completed in the last 31 days
<%= render :partial => "done", :collection => @done_this_month %>
diff --git a/tracks/app/views/todo/completed_archive.rhtml b/tracks/app/views/todo/completed_archive.rhtml
index a95d4369..ba4f7f87 100644
--- a/tracks/app/views/todo/completed_archive.rhtml
+++ b/tracks/app/views/todo/completed_archive.rhtml
@@ -1,7 +1,7 @@
There are <%= @done_archive.length %> completed actions in the archive.
-
+
Completed more than 31 days ago
<%= render :partial => "done", :collection => @done_archive %>
diff --git a/tracks/app/views/todo/list.rhtml b/tracks/app/views/todo/list.rhtml
index e69c6891..16c7bc28 100644
--- a/tracks/app/views/todo/list.rhtml
+++ b/tracks/app/views/todo/list.rhtml
@@ -1,41 +1,16 @@
-
-
+
Fresh actions (hit refresh to sort)
-
-
- <%
- for @context in @contexts
- next if @context.hidden?
- @not_done = @context.find_not_done_todos
- next if @not_done.empty?
- -%>
-
-
-
-
- <%= render :partial => "item", :collection => @not_done %>
-
-
- <% end -%>
-
-
-
Completed actions
-
-
- <% if @done.empty? -%>
-
There are no completed next actions
- <% else -%>
- <%= render :partial => "item", :collection => @done %>
- <% end -%>
-
-
+
+ <%= render :partial => "context/context", :collection => @contexts_to_show,
+ :locals => { :collapsible => true } %>
+ <%= render :partial => "todo/completed",
+ :locals => { :done => @done, :collapsible => true, :append_descriptor => nil } %>
-<%= render "shared/add_new_item_form" %>
-<%= render "shared/sidebar" %>
+ <%= render "shared/add_new_item_form" %>
+ <%= render "shared/sidebar" %>
<% if @flash["confirmation"] -%>
diff --git a/tracks/public/javascripts/toggle_notes.js b/tracks/public/javascripts/toggle_notes.js
index 8c97ecb1..ac45f6bf 100644
--- a/tracks/public/javascripts/toggle_notes.js
+++ b/tracks/public/javascripts/toggle_notes.js
@@ -1,50 +1,7 @@
-function toggleAll(itemname,state) {
- tmp = document.getElementsByTagName('div');
- for (i=0;i
-//
-
-function createXMLHttpRequest() {
- try {
- // Attempt to create it "the Mozilla way"
- if (window.XMLHttpRequest) {
- return new XMLHttpRequest();
- }
- // Guess not - now the IE way
- if (window.ActiveXObject) {
- return new ActiveXObject(getXMLPrefix() + ".XmlHttp");
- }
- }
- catch (ex) {}
- return false;
-};
-
-// Move item from uncompleted to completed
-// Many thanks to Michelle at PXL8 for a great tutorial:
-//
-function moveRow(id){
- // -- get the table row correstponding to the selected item
- var m1 = document.getElementById(id);
- if (m1)
- // -- append it to the 1st tbody of table id="holding"
- document.getElementById('holding').getElementsByTagName('tbody')[0].appendChild(m1);
-}
-
-function markItemDone(rowId, uri, id) {
- var req = createXMLHttpRequest();
- moveRow(rowId);
-
- if(!req) {
- return false;
- }
-
- req.open("POST", uri, true); //POST asynchronously
- req.setRequestHeader('Content-Type', 'application/x-www-form-url-encoded; charset=UTF-8');
- req.onreadystatechange = function() {
- if (req.readyState == 4 && req.status == 200) {
- }
- }
- req.send(encodeURIComponent("id") + '=' + encodeURIComponent(id));
-};
diff --git a/tracks/public/stylesheets/standard.css b/tracks/public/stylesheets/standard.css
index df26f9dd..21a3b114 100644
--- a/tracks/public/stylesheets/standard.css
+++ b/tracks/public/stylesheets/standard.css
@@ -57,7 +57,7 @@ a.show_notes:hover {background-image: url(../images/notes_on.png); background-re
width: 450px;
margin: 0px 15px 50px 15px;
}
-
+
#full_width_display {
float: left;
width: 800px;
@@ -108,14 +108,14 @@ a.show_notes:hover {background-image: url(../images/notes_on.png); background-re
#navlist a:hover { color: #000; }
-.contexts {
+.container {
padding: 0px 5px 0px 5px;
border: 1px solid #999;
margin: 0px 0px 15px 0px;
background: #fff;
}
-.contexts h2 {
+.container h2 {
background: #CCC;
padding: 5px;
margin-top: 0px;
@@ -126,6 +126,12 @@ a.show_notes:hover {background-image: url(../images/notes_on.png); background-re
text-shadow: rgba(0,0,0,.4) 0px 2px 5px;
}
+.container_toggle img {
+ height:20px;
+ width:20px;
+ border:0px;
+ }
+
/* Styling the 'Fresh Actions' box on the home page */
#new_actions {
padding: 0px 5px 2px 5px;
@@ -138,6 +144,7 @@ a.show_notes:hover {background-image: url(../images/notes_on.png); background-re
#new_actions h2 {
/* padding: 0 px 5px 0px 5px; */
color: #57A620;
+ background: transparent;
text-align: center;
}
@@ -173,19 +180,24 @@ h2 a:hover {
width: 20px;
}
-div.big-box, div.big-box a, div.big-box a:hover {
- float: left;
+.container a.icon {
+ float: left;
vertical-align: middle;
background-color: transparent;
}
-.checkbox {
- float: left;
+input.item-checkbox {
+ float: left;
margin-left: 10px;
vertical-align: middle;
}
+
+.checkbox form {
+ display: inline;
+ margin: 0;
+ }
-.description {
+.description, .stale_l1, .stale_l2, .stale_l3 {
margin-left: 70px;
margin-right: 10px;
}
@@ -278,7 +290,7 @@ a.footer_link:hover {color: #fff; background-color: #cc3334 !important;}
text-align: center;
}
-.completed {
+.project_completed {
border: 1px solid #007E00;
background-color: #c2ffc2;
padding: 5px;
@@ -335,21 +347,15 @@ a.footer_link:hover {color: #fff; background-color: #cc3334 !important;}
The colour of the background gets progressively yellower with age */
.stale_l1 {
- margin-left: 70px;
- margin-right: 10px;
- background: #ffffCC;
+ background: #ffC;
}
.stale_l2 {
- margin-left: 70px;
- margin-right: 10px;
- background: #ffff66;
+ background: #ff6;
}
.stale_l3 {
- margin-left: 70px;
- margin-right: 10px;
- background: #ffff00;
+ background: #ff0;
}
@@ -430,7 +436,7 @@ div#list-projects, div#list-contexts {
border: 1px solid #999;
}
-.next_actions td {
+.container td {
border: none;
padding-bottom: 5px;
}
@@ -458,7 +464,7 @@ form {
width: 313px;
}
-.inline-form {
+.inline-form, .item-checkmark-form {
border: none;
padding: 3px;
width: 100%;
@@ -501,7 +507,6 @@ input, select {
cursor: move;
}
-
div.message {
margin: 5px 0px;
background: #FAF4B5;