mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-19 05:38:08 +01:00
Added first patch contributed by Jim Ray: adds a host of fixes and bits of cleaning up, including a position column for contexts and projects to allow custom sorting, and changes to the links for pages to make them more human-readable.
I also added a pop-up calendar to set the due date. This is entirely lifted from Michele's excellent tutorial on pxl8.com (<http://www.pxl8.com/calendar_date_picker.html>). It works well, but I need to make sure it doesn't break in postgresql or sqlite. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@49 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
f6eeb1d20d
commit
e0b9ba0182
20 changed files with 319 additions and 111 deletions
|
|
@ -10,12 +10,18 @@ class TodoController < ApplicationController
|
|||
# Main method for listing tasks
|
||||
# Set page title, and fill variables with contexts and done and not-done tasks
|
||||
#
|
||||
|
||||
def index
|
||||
list
|
||||
render_action "list"
|
||||
end
|
||||
|
||||
def list
|
||||
@page_title = "List tasks"
|
||||
@projects = Project.find_all
|
||||
@places = Context.find_all
|
||||
@shown_places = Context.find_all_by_hide( 0, "name DESC")
|
||||
@hidden_places = Context.find_all_by_hide( 1 )
|
||||
@shown_places = Context.find_all_by_hide( 0, "position ASC")
|
||||
@hidden_places = Context.find_all_by_hide( 1, "position ASC" )
|
||||
@done = Todo.find_all_by_done( 1, "completed DESC", 5 )
|
||||
|
||||
# Set count badge to number of not-done, not hidden context items
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue