diff --git a/.gitignore.rails2 b/.gitignore.rails2
new file mode 100644
index 00000000..8e2cc0f5
--- /dev/null
+++ b/.gitignore.rails2
@@ -0,0 +1,25 @@
+*~
+*.tmproj
+.dotest
+/.emacs-project
+/.redcar
+config/database.yml
+config/site.yml
+config/deploy.rb
+db/*.sqlite3
+db/data.yml
+db/schema.rb
+log
+nbproject
+public/javascripts/cache
+public/stylesheets/cache
+tmp
+vendor/plugins/query_trace/
+rerun.txt
+public/javascripts/jquery-cached.js
+public/javascripts/tracks-cached.js
+public/stylesheets/tracks-cached.css
+.idea
+.rvmrc
+.yardoc
+tags
diff --git a/Gemfile b/Gemfile
index 92d8ee9f..47989c8d 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,34 +1,55 @@
-source :gemcutter
-source "http://gems.github.com/"
+source 'https://rubygems.org'
-gem "rake", "~>0.8.7"
-gem "rails", "~>2.3.12"
-gem "highline", "~>1.5.0"
-gem "RedCloth", "4.2.8"
-gem "sanitize", "~>1.2.1"
-gem "rack", "1.1.0"
-gem "will_paginate", "~> 2.3.15"
-gem "has_many_polymorphs", "~> 2.13"
-gem "acts_as_list", "~>0.1.4"
-gem "aasm", "~>2.2.0"
-gem "rubyjedi-actionwebservice", :require => "actionwebservice"
-gem "rubycas-client", "~>2.2.1"
-gem "ruby-openid", :require => "openid"
+gem 'rails', '3.2.3'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+# you may comment out the database driver you will not be using.
+# This will prevent a native build of the driver. Building native drivers is not always possible on all hosters
gem "sqlite3"
-gem "mysql"
-gem 'bcrypt-ruby', '~> 2.1.4'
-gem 'htmlentities', '~> 4.3.0'
-gem "mail"
+gem "mysql2"
-if RUBY_VERSION.to_f >= 1.9
- gem "soap4r-ruby1.9"
-else
- gem "soap4r", "~>1.5.8"
+# gem "highline", "~>1.5.0"
+gem "RedCloth"
+gem "formatize"
+gem "sanitize"
+gem "will_paginate"
+gem "acts_as_list"
+gem "aasm"
+gem "htmlentities"
+gem "swf_fu"
+gem "rails_autolink"
+
+# Gems used only for assets and not required
+# in production environments by default.
+group :assets do
+ gem 'sass-rails', '~> 3.2.3'
+ gem 'coffee-rails', '~> 3.2.1'
+
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
+ # gem 'therubyracer', :platform => :ruby
+
+ gem 'uglifier', '>= 1.0.3'
end
+gem 'jquery-rails'
+
+# To use ActiveModel has_secure_password
+gem 'bcrypt-ruby', '~> 3.0.0'
+
+# To use Jbuilder templates for JSON
+# gem 'jbuilder'
+
+# Use unicorn as the app server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
group :development do
if RUBY_VERSION.to_f >= 1.9
- gem "ruby-debug19"
+ # gem "ruby-debug19", :require => 'ruby-debug'
gem "mongrel", "1.2.0.pre2"
else
gem "ruby-debug"
@@ -38,16 +59,24 @@ group :development do
end
group :test do
- gem "test-unit", "1.2.3"
- gem "flexmock"
- gem "ZenTest", ">=4.0.0"
- gem "hpricot"
- gem "hoe"
- gem "rspec-rails", "~>1.3.3"
- gem "thoughtbot-factory_girl"
- gem 'memory_test_fix', '~>0.1.3'
- gem "selenium-client"
- gem "webrat", ">=0.7.0"
- gem "database_cleaner", ">=0.5.0"
- gem "cucumber-rails", "~>0.3.0"
+# gem "test-unit", "1.2.3"
+# gem "flexmock"
+# gem "ZenTest", ">=4.0.0"
+# gem "hpricot"
+# gem "hoe"
+# gem "rspec-rails", "~>1.3.3"
+# gem 'memory_test_fix', '~>0.1.3'
+ gem "factory_girl_rails"
+ gem "capybara"
+ gem "selenium-webdriver" # Note that > 2.14 has problems: https://code.google.com/p/selenium/issues/detail?id=3075
+ gem "database_cleaner"
+ gem "cucumber-rails"
+ gem "aruba"
+
+ # uncomment to use the webkit option. This depends on Qt to be installed
+ #gem "capybara-webkit"
+
+ # uncomment to be able to make screenshots from scenarios
+ #gem "capybara-screenshot"
+ #gem "launchy"
end
diff --git a/Gemfile.lock b/Gemfile.lock
index 27b98074..6f52bf1c 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,150 +1,210 @@
GEM
- remote: http://rubygems.org/
- remote: http://gems.github.com/
+ remote: https://rubygems.org/
specs:
- RedCloth (4.2.8)
- ZenTest (4.6.1)
- aasm (2.2.0)
- actionmailer (2.3.14)
- actionpack (= 2.3.14)
- actionpack (2.3.14)
- activesupport (= 2.3.14)
- rack (~> 1.1.0)
- activerecord (2.3.14)
- activesupport (= 2.3.14)
- activeresource (2.3.14)
- activesupport (= 2.3.14)
- activesupport (2.3.14)
- acts_as_list (0.1.4)
- bcrypt-ruby (2.1.4)
- builder (3.0.0)
- cgi_multipart_eof_fix (2.5.0)
- columnize (0.3.4)
- cucumber (1.0.2)
- builder (>= 2.1.2)
- diff-lcs (>= 1.1.2)
- gherkin (~> 2.4.5)
- json (>= 1.4.6)
- term-ansicolor (>= 1.0.5)
- cucumber-rails (0.3.2)
- cucumber (>= 0.8.0)
- daemons (1.1.4)
- database_cleaner (0.6.7)
- diff-lcs (1.1.2)
- fastthread (1.0.7)
- flexmock (0.9.0)
- gem_plugin (0.2.3)
- gherkin (2.4.11)
- json (>= 1.4.6)
- has_many_polymorphs (2.13)
+ RedCloth (4.2.9)
+ aasm (3.0.6)
activerecord
- highline (1.5.2)
- hoe (2.12.0)
- rake (~> 0.8)
- hpricot (0.8.4)
- htmlentities (4.3.0)
- httpclient (2.2.1)
+ actionmailer (3.2.3)
+ actionpack (= 3.2.3)
+ mail (~> 2.4.4)
+ actionpack (3.2.3)
+ activemodel (= 3.2.3)
+ activesupport (= 3.2.3)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.1)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.1.2)
+ activemodel (3.2.3)
+ activesupport (= 3.2.3)
+ builder (~> 3.0.0)
+ activerecord (3.2.3)
+ activemodel (= 3.2.3)
+ activesupport (= 3.2.3)
+ arel (~> 3.0.2)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.3)
+ activemodel (= 3.2.3)
+ activesupport (= 3.2.3)
+ activesupport (3.2.3)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ acts_as_list (0.1.6)
+ addressable (2.2.8)
+ arel (3.0.2)
+ aruba (0.4.11)
+ childprocess (>= 0.2.3)
+ cucumber (>= 1.1.1)
+ ffi (>= 1.0.11)
+ rspec (>= 2.7.0)
+ bcrypt-ruby (3.0.1)
+ bluecloth (2.2.0)
+ builder (3.0.0)
+ capybara (1.1.2)
+ mime-types (>= 1.16)
+ nokogiri (>= 1.3.3)
+ rack (>= 1.0.0)
+ rack-test (>= 0.5.4)
+ selenium-webdriver (~> 2.0)
+ xpath (~> 0.1.4)
+ childprocess (0.3.2)
+ ffi (~> 1.0.6)
+ coffee-rails (3.2.2)
+ coffee-script (>= 2.2.0)
+ railties (~> 3.2.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.3.3)
+ cucumber (1.2.0)
+ builder (>= 2.1.2)
+ diff-lcs (>= 1.1.3)
+ gherkin (~> 2.10.0)
+ json (>= 1.4.6)
+ cucumber-rails (1.3.0)
+ capybara (>= 1.1.2)
+ cucumber (>= 1.1.8)
+ nokogiri (>= 1.5.0)
+ daemons (1.0.10)
+ database_cleaner (0.7.2)
+ diff-lcs (1.1.3)
+ erubis (2.7.0)
+ execjs (1.3.2)
+ multi_json (~> 1.0)
+ factory_girl (3.3.0)
+ activesupport (>= 3.0.0)
+ factory_girl_rails (3.3.0)
+ factory_girl (~> 3.3.0)
+ railties (>= 3.0.0)
+ ffi (1.0.11)
+ formatize (1.1.0)
+ RedCloth (~> 4.2)
+ actionpack (~> 3.0)
+ bluecloth (~> 2.2)
+ gem_plugin (0.2.3)
+ gherkin (2.10.0)
+ json (>= 1.4.6)
+ hike (1.2.1)
+ htmlentities (4.3.1)
i18n (0.6.0)
- json (1.5.3)
- linecache (0.46)
- rbx-require-relative (> 0.0.4)
- mail (2.3.0)
+ journey (1.0.3)
+ jquery-rails (2.0.2)
+ railties (>= 3.2.0, < 5.0)
+ thor (~> 0.14)
+ json (1.7.3)
+ libwebsocket (0.1.3)
+ addressable
+ mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
- memory_test_fix (0.1.3)
- mime-types (1.16)
- mongrel (1.1.5)
- cgi_multipart_eof_fix (>= 2.4)
- daemons (>= 1.0.3)
- fastthread (>= 1.0.1)
- gem_plugin (>= 0.2.3)
- mysql (2.8.1)
- nokogiri (1.4.7)
- polyglot (0.3.2)
- rack (1.1.0)
+ mime-types (1.18)
+ mongrel (1.2.0.pre2)
+ daemons (~> 1.0.10)
+ gem_plugin (~> 0.2.3)
+ multi_json (1.3.5)
+ mysql2 (0.3.11)
+ nokogiri (1.5.2)
+ polyglot (0.3.3)
+ rack (1.4.1)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-ssl (1.3.2)
+ rack
rack-test (0.6.1)
rack (>= 1.0)
- rails (2.3.14)
- actionmailer (= 2.3.14)
- actionpack (= 2.3.14)
- activerecord (= 2.3.14)
- activeresource (= 2.3.14)
- activesupport (= 2.3.14)
- rake (>= 0.8.3)
- rake (0.8.7)
- rbx-require-relative (0.0.5)
- rspec (1.3.2)
- rspec-rails (1.3.4)
- rack (>= 1.0.0)
- rspec (~> 1.3.1)
- ruby-debug (0.10.4)
- columnize (>= 0.1)
- ruby-debug-base (~> 0.10.4.0)
- ruby-debug-base (0.10.4)
- linecache (>= 0.3)
- ruby-openid (2.1.8)
- rubycas-client (2.2.1)
- activesupport
- rubyjedi-actionwebservice (2.3.5.20100714122544)
- actionpack (~> 2.3.0)
- activerecord (~> 2.3.0)
- activesupport (~> 2.3.0)
- sanitize (1.2.1)
- nokogiri (~> 1.4.1)
- selenium-client (1.2.18)
- soap4r (1.5.8)
- httpclient (>= 2.1.1)
- sqlite3 (1.3.4)
- term-ansicolor (1.0.6)
- test-unit (1.2.3)
- hoe (>= 1.5.1)
- thoughtbot-factory_girl (1.2.2)
+ rails (3.2.3)
+ actionmailer (= 3.2.3)
+ actionpack (= 3.2.3)
+ activerecord (= 3.2.3)
+ activeresource (= 3.2.3)
+ activesupport (= 3.2.3)
+ bundler (~> 1.0)
+ railties (= 3.2.3)
+ rails_autolink (1.0.7)
+ rails (~> 3.1)
+ railties (3.2.3)
+ actionpack (= 3.2.3)
+ activesupport (= 3.2.3)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.6)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ rspec (2.10.0)
+ rspec-core (~> 2.10.0)
+ rspec-expectations (~> 2.10.0)
+ rspec-mocks (~> 2.10.0)
+ rspec-core (2.10.0)
+ rspec-expectations (2.10.0)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.10.1)
+ rubyzip (0.9.8)
+ sanitize (2.0.3)
+ nokogiri (>= 1.4.4, < 1.6)
+ sass (3.1.18)
+ sass-rails (3.2.5)
+ railties (~> 3.2.0)
+ sass (>= 3.1.10)
+ tilt (~> 1.3)
+ selenium-webdriver (2.21.2)
+ childprocess (>= 0.2.5)
+ ffi (~> 1.0)
+ libwebsocket (~> 0.1.3)
+ multi_json (~> 1.0)
+ rubyzip
+ sprockets (2.1.3)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.6)
+ swf_fu (2.0.2)
+ coffee-script
+ rails (>= 3.1)
+ thor (0.14.6)
+ tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
- webrat (0.7.3)
- nokogiri (>= 1.2.0)
- rack (>= 1.0)
- rack-test (>= 0.5.3)
- will_paginate (2.3.16)
- yard (0.7.3)
+ tzinfo (0.3.33)
+ uglifier (1.2.4)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+ will_paginate (3.0.3)
+ xpath (0.1.4)
+ nokogiri (~> 1.3)
+ yard (0.8.1)
PLATFORMS
ruby
DEPENDENCIES
- RedCloth (= 4.2.8)
- ZenTest (>= 4.0.0)
- aasm (~> 2.2.0)
- acts_as_list (~> 0.1.4)
- bcrypt-ruby (~> 2.1.4)
- cucumber-rails (~> 0.3.0)
- database_cleaner (>= 0.5.0)
- flexmock
- has_many_polymorphs (~> 2.13)
- highline (~> 1.5.0)
- hoe
- hpricot
- htmlentities (~> 4.3.0)
- mail
- memory_test_fix (~> 0.1.3)
- mongrel
- mysql
- rack (= 1.1.0)
- rails (~> 2.3.12)
- rake (~> 0.8.7)
- rspec-rails (~> 1.3.3)
- ruby-debug
- ruby-openid
- rubycas-client (~> 2.2.1)
- rubyjedi-actionwebservice
- sanitize (~> 1.2.1)
- selenium-client
- soap4r (~> 1.5.8)
+ RedCloth
+ aasm
+ acts_as_list
+ aruba
+ bcrypt-ruby (~> 3.0.0)
+ capybara
+ coffee-rails (~> 3.2.1)
+ cucumber-rails
+ database_cleaner
+ factory_girl_rails
+ formatize
+ htmlentities
+ jquery-rails
+ mongrel (= 1.2.0.pre2)
+ mysql2
+ rails (= 3.2.3)
+ rails_autolink
+ sanitize
+ sass-rails (~> 3.2.3)
+ selenium-webdriver
sqlite3
- test-unit (= 1.2.3)
- thoughtbot-factory_girl
- webrat (>= 0.7.0)
- will_paginate (~> 2.3.15)
+ swf_fu
+ uglifier (>= 1.0.3)
+ will_paginate
yard
diff --git a/README b/README
index 3b9a58bc..848cefa0 100644
--- a/README
+++ b/README
@@ -1,28 +1,21 @@
# Tracks: a GTD(TM) web application, built with Ruby on Rails
-**IMPORTANT: Tracks is moving to a GitHub Organization to make it easier to continue administering the project. Development will soon cease at bsag/tracks and move to TracksApp/tracks. If you are currently pulling from bsag/tracks, please pull from TracksApp instead.**
-
-`git clone git://github.com/TracksApp/tracks.git`
-
-**The new home for Tracks is https://github.com/TracksApp/tracks**
-
* Project homepage: http://getontracks.org/
-* Manual: http://TracksApp.github.com/tracks/
+* Manual: http://getontracks.org/manual/
* Source at GitHub: http://github.com/TracksApp/tracks/
* Assembla space (for bug reports and feature requests): http://www.assembla.com/spaces/tracks-tickets/tickets
* Wiki (community contributed information): https://github.com/TracksApp/tracks/wiki
-* Forum: http://getontracks.org/forums/
+* Forum (read-only): http://getontracks.org/forums/
* Mailing list: http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss
* Original developer: bsag (http://www.rousette.org.uk/)
* Contributors: https://github.com/TracksApp/tracks/wiki/Contributors
-* Version: 2.1devel
-* Copyright: (cc) 2004-2011 rousette.org.uk.
+* Version: 2.2devel
+* Copyright: (cc) 2004-2012 rousette.org.uk.
* License: GNU GPL
-All the documentation for Tracks can be found within the /doc directory and at
-http://bsag.github.com/tracks/
+More documentation for Tracks can be found within the /doc directory
-The latter includes full instructions for both new installations and upgrades
+The manual includes full instructions for both new installations and upgrades
from older installations of Tracks.
The instructions might appear long and intimidatingly complex, but that is
@@ -37,12 +30,11 @@ you cannot find a solution to your problem.
The wiki has a lot of user contributed installation HOWTOs for various webhosts, specific OS's and more.
If you are thinking about contributing towards the development of Tracks,
-please read /doc/README_DEVELOPERS for general information, or
-/doc/tracks_api_wrapper.rb for information on Tracks' API. Also you can find
-some information on development on the wiki.
+please read /doc/README_DEVELOPERS for general information. Also you can find
+some information on development, testing and contributing on the wiki.
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.
-Enjoy being productive!
+Enjoy being productive!
\ No newline at end of file
diff --git a/Rakefile b/Rakefile
index 2704572a..af3b6bdc 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,16 +1,7 @@
+#!/usr/bin/env rake
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
-require(File.join(File.dirname(__FILE__), 'config', 'boot'))
+require File.expand_path('../config/application', __FILE__)
-require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
-
-require 'tasks/rails'
-
-begin
- require 'test/rails/rake_tasks'
-rescue LoadError => e
- #It's ok if you don't have ZenTest installed if you're not a developer
-end
+Tracksapp::Application.load_tasks
diff --git a/public/images/accept.png b/app/assets/images/accept.png
similarity index 100%
rename from public/images/accept.png
rename to app/assets/images/accept.png
diff --git a/public/images/add.png b/app/assets/images/add.png
similarity index 100%
rename from public/images/add.png
rename to app/assets/images/add.png
diff --git a/public/apple-touch-icon.png b/app/assets/images/apple-touch-icon.png
similarity index 100%
rename from public/apple-touch-icon.png
rename to app/assets/images/apple-touch-icon.png
diff --git a/public/images/arrows-ffffff.png b/app/assets/images/arrows-ffffff.png
similarity index 100%
rename from public/images/arrows-ffffff.png
rename to app/assets/images/arrows-ffffff.png
diff --git a/public/images/bigBlackWaiting.gif b/app/assets/images/bigBlackWaiting.gif
similarity index 100%
rename from public/images/bigBlackWaiting.gif
rename to app/assets/images/bigBlackWaiting.gif
diff --git a/public/images/bigWaiting.gif b/app/assets/images/bigWaiting.gif
similarity index 100%
rename from public/images/bigWaiting.gif
rename to app/assets/images/bigWaiting.gif
diff --git a/public/images/blackWaiting.gif b/app/assets/images/blackWaiting.gif
similarity index 100%
rename from public/images/blackWaiting.gif
rename to app/assets/images/blackWaiting.gif
diff --git a/public/images/blank.png b/app/assets/images/blank.png
similarity index 100%
rename from public/images/blank.png
rename to app/assets/images/blank.png
diff --git a/public/images/bottom_off.png b/app/assets/images/bottom_off.png
similarity index 100%
rename from public/images/bottom_off.png
rename to app/assets/images/bottom_off.png
diff --git a/public/images/bottom_on.png b/app/assets/images/bottom_on.png
similarity index 100%
rename from public/images/bottom_on.png
rename to app/assets/images/bottom_on.png
diff --git a/public/images/cancel.png b/app/assets/images/cancel.png
similarity index 100%
rename from public/images/cancel.png
rename to app/assets/images/cancel.png
diff --git a/public/images/close.gif b/app/assets/images/close.gif
similarity index 100%
rename from public/images/close.gif
rename to app/assets/images/close.gif
diff --git a/public/images/collapse.png b/app/assets/images/collapse.png
similarity index 100%
rename from public/images/collapse.png
rename to app/assets/images/collapse.png
diff --git a/public/images/construction.gif b/app/assets/images/construction.gif
similarity index 100%
rename from public/images/construction.gif
rename to app/assets/images/construction.gif
diff --git a/public/images/container-gradient.png b/app/assets/images/container-gradient.png
similarity index 100%
rename from public/images/container-gradient.png
rename to app/assets/images/container-gradient.png
diff --git a/public/images/defer_1.png b/app/assets/images/defer_1.png
similarity index 100%
rename from public/images/defer_1.png
rename to app/assets/images/defer_1.png
diff --git a/public/images/defer_1_off.png b/app/assets/images/defer_1_off.png
similarity index 100%
rename from public/images/defer_1_off.png
rename to app/assets/images/defer_1_off.png
diff --git a/app/assets/images/defer_2.png b/app/assets/images/defer_2.png
new file mode 100644
index 00000000..c27b735b
Binary files /dev/null and b/app/assets/images/defer_2.png differ
diff --git a/app/assets/images/defer_2_off.png b/app/assets/images/defer_2_off.png
new file mode 100644
index 00000000..d9ab3384
Binary files /dev/null and b/app/assets/images/defer_2_off.png differ
diff --git a/app/assets/images/defer_3.png b/app/assets/images/defer_3.png
new file mode 100644
index 00000000..7c8c68ee
Binary files /dev/null and b/app/assets/images/defer_3.png differ
diff --git a/app/assets/images/defer_3_off.png b/app/assets/images/defer_3_off.png
new file mode 100644
index 00000000..3fee2133
Binary files /dev/null and b/app/assets/images/defer_3_off.png differ
diff --git a/public/images/defer_7.png b/app/assets/images/defer_7.png
similarity index 100%
rename from public/images/defer_7.png
rename to app/assets/images/defer_7.png
diff --git a/public/images/defer_7_off.png b/app/assets/images/defer_7_off.png
similarity index 100%
rename from public/images/defer_7_off.png
rename to app/assets/images/defer_7_off.png
diff --git a/public/images/delete_off.png b/app/assets/images/delete_off.png
similarity index 100%
rename from public/images/delete_off.png
rename to app/assets/images/delete_off.png
diff --git a/public/images/delete_on.png b/app/assets/images/delete_on.png
similarity index 100%
rename from public/images/delete_on.png
rename to app/assets/images/delete_on.png
diff --git a/public/images/done.png b/app/assets/images/done.png
similarity index 100%
rename from public/images/done.png
rename to app/assets/images/done.png
diff --git a/public/images/down_off.png b/app/assets/images/down_off.png
similarity index 100%
rename from public/images/down_off.png
rename to app/assets/images/down_off.png
diff --git a/public/images/down_on.png b/app/assets/images/down_on.png
similarity index 100%
rename from public/images/down_on.png
rename to app/assets/images/down_on.png
diff --git a/public/images/downarrow.png b/app/assets/images/downarrow.png
similarity index 100%
rename from public/images/downarrow.png
rename to app/assets/images/downarrow.png
diff --git a/public/images/edit_off.png b/app/assets/images/edit_off.png
similarity index 100%
rename from public/images/edit_off.png
rename to app/assets/images/edit_off.png
diff --git a/public/images/edit_on.png b/app/assets/images/edit_on.png
similarity index 100%
rename from public/images/edit_on.png
rename to app/assets/images/edit_on.png
diff --git a/public/images/expand.png b/app/assets/images/expand.png
similarity index 100%
rename from public/images/expand.png
rename to app/assets/images/expand.png
diff --git a/public/favicon.ico b/app/assets/images/favicon.ico
similarity index 100%
rename from public/favicon.ico
rename to app/assets/images/favicon.ico
diff --git a/public/images/feed-icon.png b/app/assets/images/feed-icon.png
similarity index 100%
rename from public/images/feed-icon.png
rename to app/assets/images/feed-icon.png
diff --git a/public/images/grip.png b/app/assets/images/grip.png
similarity index 100%
rename from public/images/grip.png
rename to app/assets/images/grip.png
diff --git a/public/images/icon_delete.png b/app/assets/images/icon_delete.png
similarity index 100%
rename from public/images/icon_delete.png
rename to app/assets/images/icon_delete.png
diff --git a/public/images/menuarrow.gif b/app/assets/images/menuarrow.gif
similarity index 100%
rename from public/images/menuarrow.gif
rename to app/assets/images/menuarrow.gif
diff --git a/public/images/menustar.gif b/app/assets/images/menustar.gif
similarity index 100%
rename from public/images/menustar.gif
rename to app/assets/images/menustar.gif
diff --git a/public/images/menustar_small.gif b/app/assets/images/menustar_small.gif
similarity index 100%
rename from public/images/menustar_small.gif
rename to app/assets/images/menustar_small.gif
diff --git a/public/images/mobile_notes.png b/app/assets/images/mobile_notes.png
similarity index 100%
rename from public/images/mobile_notes.png
rename to app/assets/images/mobile_notes.png
diff --git a/public/images/new-action-gradient.png b/app/assets/images/new-action-gradient.png
similarity index 100%
rename from public/images/new-action-gradient.png
rename to app/assets/images/new-action-gradient.png
diff --git a/public/images/notes_off.png b/app/assets/images/notes_off.png
similarity index 100%
rename from public/images/notes_off.png
rename to app/assets/images/notes_off.png
diff --git a/public/images/notes_on.png b/app/assets/images/notes_on.png
similarity index 100%
rename from public/images/notes_on.png
rename to app/assets/images/notes_on.png
diff --git a/public/images/open-id-login-bg.gif b/app/assets/images/open-id-login-bg.gif
similarity index 100%
rename from public/images/open-id-login-bg.gif
rename to app/assets/images/open-id-login-bg.gif
diff --git a/app/assets/images/rails.png b/app/assets/images/rails.png
new file mode 100644
index 00000000..d5edc04e
Binary files /dev/null and b/app/assets/images/rails.png differ
diff --git a/public/images/recurring16x16.png b/app/assets/images/recurring16x16.png
similarity index 100%
rename from public/images/recurring16x16.png
rename to app/assets/images/recurring16x16.png
diff --git a/public/images/recurring24x24.png b/app/assets/images/recurring24x24.png
similarity index 100%
rename from public/images/recurring24x24.png
rename to app/assets/images/recurring24x24.png
diff --git a/public/images/recurring_menu16x16.png b/app/assets/images/recurring_menu16x16.png
similarity index 100%
rename from public/images/recurring_menu16x16.png
rename to app/assets/images/recurring_menu16x16.png
diff --git a/public/images/recurring_menu24x24.png b/app/assets/images/recurring_menu24x24.png
similarity index 100%
rename from public/images/recurring_menu24x24.png
rename to app/assets/images/recurring_menu24x24.png
diff --git a/public/images/reviewed.png b/app/assets/images/reviewed.png
similarity index 100%
rename from public/images/reviewed.png
rename to app/assets/images/reviewed.png
diff --git a/public/images/shadow.png b/app/assets/images/shadow.png
similarity index 100%
rename from public/images/shadow.png
rename to app/assets/images/shadow.png
diff --git a/public/images/spinner.gif b/app/assets/images/spinner.gif
similarity index 100%
rename from public/images/spinner.gif
rename to app/assets/images/spinner.gif
diff --git a/public/images/staricons.png b/app/assets/images/staricons.png
similarity index 100%
rename from public/images/staricons.png
rename to app/assets/images/staricons.png
diff --git a/public/images/stats.gif b/app/assets/images/stats.gif
similarity index 100%
rename from public/images/stats.gif
rename to app/assets/images/stats.gif
diff --git a/public/images/successor_off.png b/app/assets/images/successor_off.png
similarity index 100%
rename from public/images/successor_off.png
rename to app/assets/images/successor_off.png
diff --git a/public/images/successor_on.png b/app/assets/images/successor_on.png
similarity index 100%
rename from public/images/successor_on.png
rename to app/assets/images/successor_on.png
diff --git a/public/images/system-search.png b/app/assets/images/system-search.png
similarity index 100%
rename from public/images/system-search.png
rename to app/assets/images/system-search.png
diff --git a/public/images/to_project_off.png b/app/assets/images/to_project_off.png
similarity index 100%
rename from public/images/to_project_off.png
rename to app/assets/images/to_project_off.png
diff --git a/public/images/top_off.png b/app/assets/images/top_off.png
similarity index 100%
rename from public/images/top_off.png
rename to app/assets/images/top_off.png
diff --git a/public/images/top_on.png b/app/assets/images/top_on.png
similarity index 100%
rename from public/images/top_on.png
rename to app/assets/images/top_on.png
diff --git a/public/images/trans70.png b/app/assets/images/trans70.png
similarity index 100%
rename from public/images/trans70.png
rename to app/assets/images/trans70.png
diff --git a/public/images/ui-anim_basic_16x16.gif b/app/assets/images/ui-anim_basic_16x16.gif
similarity index 100%
rename from public/images/ui-anim_basic_16x16.gif
rename to app/assets/images/ui-anim_basic_16x16.gif
diff --git a/public/images/up_off.png b/app/assets/images/up_off.png
similarity index 100%
rename from public/images/up_off.png
rename to app/assets/images/up_off.png
diff --git a/public/images/up_on.png b/app/assets/images/up_on.png
similarity index 100%
rename from public/images/up_on.png
rename to app/assets/images/up_on.png
diff --git a/public/images/waiting.gif b/app/assets/images/waiting.gif
similarity index 100%
rename from public/images/waiting.gif
rename to app/assets/images/waiting.gif
diff --git a/public/images/x-office-calendar.png b/app/assets/images/x-office-calendar.png
similarity index 100%
rename from public/images/x-office-calendar.png
rename to app/assets/images/x-office-calendar.png
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js
new file mode 100644
index 00000000..be027979
--- /dev/null
+++ b/app/assets/javascripts/application.js
@@ -0,0 +1,30 @@
+// This is a manifest file that'll be compiled into application.js, which will include all the files
+// listed below.
+//
+// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
+// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
+//
+// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
+// the compiled file.
+//
+// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
+// GO AFTER THE REQUIRES BELOW.
+//
+//= require jquery
+//= require jquery_ujs
+
+// Stuff in app/assets
+//= require tracks.js
+
+// Stuff in vendor/assets
+//= require jquery-ui-1.8.17.custom.min
+//= require jquery.blockUI
+//= require jquery.cookie
+//= require jquery.form
+//= require jquery.jeditable.mini
+//= require jquery.simulate.drag-sortable
+//= require jquery.truncator
+//= require niftycube
+//= require superfish
+//= require supersubs
+//= require swfobject
\ No newline at end of file
diff --git a/public/javascripts/application.js b/app/assets/javascripts/tracks.js
similarity index 97%
rename from public/javascripts/application.js
rename to app/assets/javascripts/tracks.js
index 5c2302f8..47a4a4be 100644
--- a/public/javascripts/application.js
+++ b/app/assets/javascripts/tracks.js
@@ -434,7 +434,7 @@ var TodoItems = {
return confirm(i18n['contexts.new_context_pre'] + givenContextName + i18n['contexts.new_context_post']);
},
generate_predecessor: function(todo_id, todo_spec) {
- var img = "";
+ var img = "
";
var anchor = "" + img + "";
var li = "
Fügen Sie den Inhalt der kopierten YAML Datei in das untenstehende Formular ein:
- <% form_for :import, @import, :url => {:controller => 'data', :action => 'yaml_import'} do |f| %>
+ <%= form_for :import, @import, :url => {:controller => 'data', :action => 'yaml_import'} do |f| %>
<%= f.text_area :yaml %>
<% end %>
diff --git a/app/views/data/yaml_form.en.html.erb b/app/views/data/yaml_form.en.html.erb
index 1b89a9db..c7f04165 100644
--- a/app/views/data/yaml_form.en.html.erb
+++ b/app/views/data/yaml_form.en.html.erb
@@ -1,14 +1,14 @@
Beware: all your current data will be destroyed before importing - the YAML file, so if you have access to the database, we strongly recommend +
Beware: all your current data will be destroyed before importing + the YAML file, so if you have access to the database, we strongly recommend backing up the database right now in case that anything goes wrong.
Paste the contents of the YAML file you exported into the text box below:
- <% form_for :import, @import, :url => {:controller => 'data', :action => 'yaml_import'} do |f| %>
+ <%= form_for :import, @import, :url => {:controller => 'data', :action => 'yaml_import'} do |f| %>
<%= f.text_area :yaml %>
<% end %>
diff --git a/app/views/feedlist/_feed_for_context.html.erb b/app/views/feedlist/_feed_for_context.html.erb
index 33e8b6d9..0ffa13e1 100644
--- a/app/views/feedlist/_feed_for_context.html.erb
+++ b/app/views/feedlist/_feed_for_context.html.erb
@@ -1,25 +1,21 @@
-<% context = @active_contexts.empty? ? @hidden_contexts.first : @active_contexts.first
--%>
-
+<% context = @active_contexts.empty? ? @hidden_contexts.first : @active_contexts.first -%>
If you enter the following entry to your crontab, you will receive email every day around 5 AM with a list of the upcoming actions which are due within the next 7 days.
- +You can of course use other text <%= link_to 'feeds provided by Tracks', feeds_path %> -- why not email a list of next actions in a particular project to a group of colleagues who are working on the project?
@@ -100,7 +100,7 @@ If Tracks is running on the same server as your mail server, you can use the integrated mail handler built into tracks. Steps to set it up:Do you have one of your own to add? +
Do you have one of your own to add? Tell us about it in our Tips and Tricks forum and we may include it on this page in a future versions of Tracks.
@@ -90,7 +90,7 @@If you enter the following entry to your crontab, you will receive email every day around 5 AM with a list of the upcoming actions which are due within the next 7 days.
- +You can of course use other text <%= link_to 'feeds provided by Tracks', feeds_path %> -- why not email a list of next actions in a particular project to a group of colleagues who are working on the project?
@@ -100,7 +100,7 @@ If Tracks is running on the same server as your mail server, you can use the integrated mail handler built into tracks. Steps to set it up:Dit script neemt de verstuurder en het onderwerp van de geselecteerde email(s) +
Dit script neemt de verstuurder en het onderwerp van de geselecteerde email(s) van Mail over en maakt een nieuwe acties voor elke email met de beschrijving "Email [sender] about [subject]". De beschrijving wordt, als nodig, na 100 karakters afgebroken (dit is de limiet voor een beschrijving). Het heeft ook Growl notificaties mocht je Growl geïnstalleerd hebben.
@@ -93,7 +93,7 @@Als je de volgende regel toevoegd aan jouw crontab, dat ontvang je een e-mail op elke dag rond 05:00 met een lijst met acties waarvan de deadline afloopt binnen de komende 7 dagen.
- +Uiteraard kan je ook een andere <%= link_to 'text feed gebruiken die Tracks biedt', feeds_path %> -- bijvoorbeeld een email met een lijst van acties voor een specifiek project naar een groep collega's die werken aan dat project?
@@ -103,7 +103,7 @@ Als Tracks draait op dezelfde server als jouw mailserver, dan kan je de geïntegreerde mail handler gebruiken van Tracks. Om dit in te stellen:Je kan nu ook jouw projects/actions beheren in Gmail met de Tracks Gmail Gadget. Voeg Tracks Gmail gadget toe aan de sidebar van Gmail en volg jouw acties - of voeg een nieuwe actie toe zonder apart een nieuw browser tab/scherm te openen + of voeg een nieuwe actie toe zonder apart een nieuw browser tab/scherm te openen voor Tracks. Om dit in te stellen:
$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" \ - <%= home_url %>contexts.xml + <%= root_url %>contexts.xml >> <?xml version="1.0" encoding="UTF-8"?> <contexts>...</contexts>@@ -32,7 +32,7 @@@@ -115,7 +115,7 @@ Location: <%= home_url %>todos/452.xml$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" \ - <%= home_url %>contexts/51.xml + <%= root_url %>contexts/51.xml >> <?xml version="1.0" encoding="UTF-8"?> <context>...</context>@@ -43,7 +43,7 @@@@ -102,9 +102,9 @@ Location: <%= home_url %>projects/65.xml$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" \ - <%= home_url %>contexts/51/todos.xml + <%= root_url %>contexts/51/todos.xml >> <?xml version="1.0" encoding="UTF-8"?> <todos type="array">...</todos>@@ -75,7 +75,7 @@ field toID, created_at, modified_at, completed_atby adding the pa@@ -89,9 +89,9 @@ field to$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" \ - <%= home_url %>tickler.xml?limit_fields=index + <%= root_url %>tickler.xml?limit_fields=indexID, created_at, modified_at, completed_atby adding the pa$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" \ -d "<project><name>Build a treehouse for the kids</name></project>" \ - <%= home_url %>projects.xml -i + <%= root_url %>projects.xml -i >> HTTP/1.1 201 Created -Location: <%= home_url %>projects/65.xml +Location: <%= root_url %>projects/65.xml ...$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" \ -d "<todo><description>Model treehouse in SketchUp</description><context_id>2</context_id><project_id>65</project_id></todo>" \ - <%= home_url %>todos.xml -i + <%= root_url %>todos.xml -i >> HTTP/1.1 201 Created -Location: <%= home_url %>todos/452.xml +Location: <%= root_url %>todos/452.xml ...$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" -X PUT \ -d "<todo><notes>use maple texture</notes></todos>" \ - <%= home_url %>todos/452.xml -i + <%= root_url %>todos/452.xml -i >> HTTP/1.1 200 OK ... @@ -135,7 +135,7 @@ Location: <%= home_url %>todos/452.xml$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" -X PUT \ - <%= home_url %>todos/452/toggle_check.xml -i + <%= root_url %>todos/452/toggle_check.xml -i >> HTTP/1.1 200 OK ... @@ -156,7 +156,7 @@ Location: <%= home_url %>todos/452.xml$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" -X DELETE \ - <%= home_url %>todos/452.xml -i + <%= root_url %>todos/452.xml -i >> HTTP/1.1 200 OK ...@@ -175,7 +175,7 @@ Location: <%= home_url %>todos/452.xml$ curl -u username:p4ssw0rd -H "Content-Type: text/xml" \ - <%= home_url %>contexts/2/todos.xml + <%= root_url %>contexts/2/todos.xml >> <?xml version="1.0" encoding="UTF-8"?> <nil-classes type="array"/> @@ -192,8 +192,8 @@ $ script/console Loading development environment (Rails 1.2.4) >> class Context < ActiveResource::Base; end => nil ->> Context.site = "<%= home_url %>" -=> "<%= home_url %>" +>> Context.site = "<%= root_url %>" +=> "<%= root_url %>" >> Context.site.user = "username" => "username" diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 00000000..d29802cd --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + +Tracksapp + <%= stylesheet_link_tag "application", :media => "all" %> + <%= javascript_include_tag "application" %> + <%= csrf_meta_tags %> + + + +<%= yield %> + + + diff --git a/app/views/layouts/login.html.erb b/app/views/layouts/login.html.erb index 49099e2a..4eb908d2 100644 --- a/app/views/layouts/login.html.erb +++ b/app/views/layouts/login.html.erb @@ -3,7 +3,6 @@ <%= stylesheet_link_tag "scaffold" %> - <%= javascript_include_tag 'jquery-1.6.2.min', 'jquery.cookie' %><%= @page_title -%> diff --git a/app/views/layouts/mobile.m.erb b/app/views/layouts/mobile.m.erb index e11432da..22440793 100644 --- a/app/views/layouts/mobile.m.erb +++ b/app/views/layouts/mobile.m.erb @@ -14,26 +14,21 @@ <% if current_user && !current_user.prefs.nil? -%>+<% if @down_count -%><%= @down_count %><% end -%> <%= l(Date.today, :format => current_user.prefs.title_date_format) -%>
-