Commit graph

95 commits

Author SHA1 Message Date
bsag
9f5fff1225 Added the sanitize method to all of the fields which get displayed on the page (context.name, project.name, project.description, todo.description, todo.notes, note.body). This stops harmful HTML codes being embedded in the page. Sanitize strips out javascript and on* attributes. The HTML gets rendered with the HTML entities escaped.
Incidentally, #79 does seem to be fixed now: if you enter a project or context name with a slash, the slash is escaped in the URL as %2F, so links don't break.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@142 a4c988fc-2ded-0310-b66e-134b36920a42
2005-08-28 14:20:42 +00:00
bsag
979ae7dc27 Changed the shebang lines to <tt>#!/usr/bin/env ruby</tt>. This should work for all *nix based setups (Linux or Mac OS X), but Windows users will probably have to change it. Try this command at the command line, run inside the Tracks directory:
{{{
ruby -i.bak -pe 'gsub!("#!/usr/bin/env ruby", "#!c:/ruby/bin/ruby")' public/dispatch.* script/*
}}}

I also failed to add the new user-related files and the new migrate task last time I committed, so those are added now.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@141 a4c988fc-2ded-0310-b66e-134b36920a42
2005-08-28 12:54:47 +00:00
bsag
6487400f07 Applied lolindrath's patch to fix #81: adding/editing next actions should work OK in Opera 8.02 (Windows). I don't have this browser, so let me know if this fix works. Doesn't seem to break anything else. Thanks, lolindrath.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@140 a4c988fc-2ded-0310-b66e-134b36920a42
2005-08-27 11:13:36 +00:00
bsag
cc78e8b58b Applied lolindrath's patch to fix #73: next actions which were completed yesterday now show up correctly in the 'Completed in the last 7 days' box on the completed action view.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@139 a4c988fc-2ded-0310-b66e-134b36920a42
2005-08-26 18:28:03 +00:00
bsag
f161ddf4ff Updated the contexts.yml and projects.yml with the new database fields. Also
added the new description field for projects in the content sql file.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@138 a4c988fc-2ded-0310-b66e-134b36920a42
2005-08-26 18:05:50 +00:00
bsag
db7084dabe Added in most of Tony Shadwick's patches. The main change is that projects now have an optional description field, in which you can describe the aims or main point of the project. If present, it's displayed just below the project name on the [tracks_url]/show/[project_name] page.
A placeholder page is also added for future configuration of users: [tracks_url]/user/index and [tracks_url]/user/admin. It doesn't do anything useful yet ;-).

I added the database changes as a migrate task, so running:

{{{
  rake migrate
}}}

at the command line inside your tracks directory will automatically update your database (if you are using either MySQL or PostgreSQL.

Fixes #84.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@137 a4c988fc-2ded-0310-b66e-134b36920a42
2005-08-20 10:40:20 +00:00
bsag
0a7a50c7c3 Added a rake task ('setup_tracks') which copies all the *.tmpl files and to a new file/directory name minus the .tmpl extension. Note that you do need to copy database.yml.tmpl -> database.yml first and edit it appropriately, or rake can't run any tasks!
Updated the documentation appropriately.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@136 a4c988fc-2ded-0310-b66e-134b36920a42
2005-08-10 20:01:48 +00:00
bsag
66946fd14e Files doc/CHANGELOG, doc/README_FOR_APP and README_FIRST.txt updated to reflect new instructions for installing the multi-user version of Tracks in the trunk.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@135 a4c988fc-2ded-0310-b66e-134b36920a42
2005-08-10 14:38:07 +00:00
bsag
21a37286b3 Updated the content SQL file to work with the new schemas. This file ''does not'' contain any data for the users table. You need to visit http://YOURURL/signup to set up new users.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@134 a4c988fc-2ded-0310-b66e-134b36920a42
2005-08-10 13:41:12 +00:00
bsag
fa795bf066 Updated the table schemas in db with the new fields required for the multi-user facility. The MySQL and Postgresql versions are for reference only, as users installing or upgrading and using either of those databases can use the command 'rake migrate' to populate or update their database with the correct schema.
Users of SQLite/SQLite3 will have to use the schema to update/populate their database manually. For now...


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@133 a4c988fc-2ded-0310-b66e-134b36920a42
2005-08-10 12:45:32 +00:00
bsag
47a60277ab Added the tmp.tmpl directory, as the directory 'tmp' is needed for storing session data in the latest version of Tracks. You need to copy this directory to 'tmp' before it will work.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@132 a4c988fc-2ded-0310-b66e-134b36920a42
2005-08-10 09:40:09 +00:00
nic
91641500a7 Merged tracks-mu-import branch changes r113:130 into the trunk
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@131 a4c988fc-2ded-0310-b66e-134b36920a42
2005-08-08 01:54:05 +00:00
bsag
2d2f9fcca8 Added a 'charset=UTF-8' meta tag to standard.rhtml as suggested by Gabriel Birke to fix problems with non-ASCII characters.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@111 a4c988fc-2ded-0310-b66e-134b36920a42
2005-07-17 11:24:24 +00:00
bsag
1d29f43785 Added Notes. These are added to a particular project, and displayed in summary form on /project/[name]. You can see all notes on /notes, and individual notes on /note/[id]. The latter two pages allow you to delete and edit the notes. The note body uses Textile/Markdown format.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@110 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-18 13:46:03 +00:00
bsag
bc978622e7 * Ambiguous wording "Add next action to this context" and "Completed actions in this context" was fixed on home page. Fixes #71
* Replaced the built-in Effect.Squish() effect on deleted and completed actions with Effect2.Fade() by [http://mir.aculo.us/effects/index.html Thomas Fuchs]. This looks much nicer, and doesn't generate the visual oddities that Kris noted. I've also added an Effect.Highlight for when new actions are added to help inform the user that something has happened.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@109 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-15 17:32:50 +00:00
bsag
f5053d60c2 Modified display of undone next actions to return the correct case for "actions" depending on whether there are none, many or one. Fixes #69.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@108 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-12 17:30:19 +00:00
bsag
dd255218b9 Replaced the disabled checkboxes in /projects and /contexts with labels (grey boxes with white text) denoting whether the context is visible or hidden and whether the project is active or completed. Fixes #67.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@107 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-12 16:36:55 +00:00
bsag
c7618cdc5d Oops. Got a bit carried away with the last commit, and hid completed projects from /projects listing. Put this right. (I'm ill and I should really get into bed...)
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@106 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-12 12:23:51 +00:00
bsag
3f90096bb8 Completed projects no longer appear in the Projects drop down on all the forms. Fixes #66.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@105 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-12 12:14:30 +00:00
bsag
6c44e5231b A few more edits to the documentation.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@103 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-11 13:52:15 +00:00
bsag
b4d72cf17a Updated the documents, which are now in doc (CHANGELOG and README_FOR_APP).
Also removed the tabs from all the files, and replaced with spaces (2 per tab).


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@102 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-11 12:24:19 +00:00
bsag
977ca82306 Fixes #62.
The problem was that project (and context) names were made into URLs via the 'urlize' method which substituted spaces for underscores and downcased the string. This was then converted back to the real project name by the Rails method 'humanize', which substituted spaces for underscores and Capitalized the string (i.e. only the first word was given an initial capital). This meant that visiting /project/show/project_name would fail if the real project name was either 'Project Name' or 'project name'.

I altered 'urlize' to maintain the capitalization that was entered, and created a new method 'deurlize' that just reversed this change (i.e. swapped underscores for spaces, but left capitalization as is).


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@101 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-07 18:39:51 +00:00
bsag
9587984ecb Updated file names of *.sql files to reflect the new version.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@99 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-05 12:00:22 +00:00
bsag
125f31cc48 Bit more cleaning up.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@98 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-05 11:41:44 +00:00
bsag
7af463c3f8 Nearly there...
I've removed my experiment with lib/math as it was throwing an error.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@97 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-05 11:22:00 +00:00
bsag
78c118181c Patch by nic, fixes the incorrect count for next actions in contexts and projects in the sidebar, and also packages up the methods nicely into the models files. Thanks, nic! Fixes #53.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@96 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-05 09:54:58 +00:00
bsag
9f89610fab The dropdowns for contexts and projects are now ordered by the position attribute, so if you move your 'default' context or project to the top of the list in /contexts and /projects, that will be the default option in the dropdown.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@95 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-04 17:11:59 +00:00
bsag
c772ddd282 Applied nic's patch to fix #8. Next actions now only get marked with the staleness flag if they '''don't''' have a due date.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@94 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-04 16:50:29 +00:00
bsag
9c912c18a5 New images (from eclipse.org) for the edit, delete, notes and up, down, top and bottom buttons. I've made a greyscale version for the default, then the coloured version gets loaded when the mouse is hovering over the button.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@93 a4c988fc-2ded-0310-b66e-134b36920a42
2005-06-04 15:55:58 +00:00
bsag
e202abac89 Updated db files to reflect new column in projects table.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@92 a4c988fc-2ded-0310-b66e-134b36920a42
2005-05-29 12:57:44 +00:00
bsag
8a08515227 You can mark projects as completed (by editing the project on /projects). In the 'sidebar' active and completed projects are shown separately, but you can still view the completed project.
Fixes #5.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@91 a4c988fc-2ded-0310-b66e-134b36920a42
2005-05-29 10:31:49 +00:00
bsag
ed5d72e9e1 Contexts and projects can now be sorted in any order you like. Arrow buttons on the /contexts and /projects pages let you move an item to the top, up, down or to the bottom. For contexts, this affects the order in which they sort on the home page. Fixes #46.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@90 a4c988fc-2ded-0310-b66e-134b36920a42
2005-05-29 09:32:02 +00:00
bsag
c6ec129570 Fixes ticket #8.
There's a new setting in settings.yml (staleness_starts) which defines the number of days before which actions get marked as stale. Let's say you set it to 7 days. Actions created between 7 and 14 days ago get marked pale yellow, those created between 14 and 28 days ago (staleness_starts * 2) get marked darker yellow, and those created more than 28 days ago (staleness_starts * 3) are fluorescent yellow! If you see fluorescent yellow, you should '''really''' get down to doing that action.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@89 a4c988fc-2ded-0310-b66e-134b36920a42
2005-05-28 16:24:41 +00:00
bsag
f772114c66 Applied lolindrath's patch (ticket #12), which fixes the calculation of dates for the completed page so that it works with all the database formats. Thanks, lolindrath!
Also put back _done.rhtml partial after accidentally removing it. Thank goodness for Subversion revisions...


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@88 a4c988fc-2ded-0310-b66e-134b36920a42
2005-05-28 14:58:13 +00:00
bsag
6cd9335de8 The popup calendar now works for updating actions too. Just click in the date field to pop the calendar up.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@87 a4c988fc-2ded-0310-b66e-134b36920a42
2005-05-28 14:33:39 +00:00
bsag
8406a482d5 Merged branches/TRY-BSAG-ajax back to the trunk.
...and we're back!


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@86 a4c988fc-2ded-0310-b66e-134b36920a42
2005-05-28 14:08:44 +00:00
bsag
71bbb06d3e A little housekeeping on the filesystem.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@65 a4c988fc-2ded-0310-b66e-134b36920a42
2005-04-09 10:54:45 +00:00
bsag
086846e43b [Patch by lolindrath, #29] Added position column to postgreSQL and SQLite table db files. Also removed content from SQLite db file. So now all of the table db files for all 3 db include only table definitions, and the content file should work for all three formats.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@64 a4c988fc-2ded-0310-b66e-134b36920a42
2005-04-09 09:27:48 +00:00
bsag
e0606f8483 [Patch by lolindrath - #30] ISNULL(due) wasn't compatible with postgreSQL, so changed to due IS NULL which works with all 3 db formats.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@63 a4c988fc-2ded-0310-b66e-134b36920a42
2005-04-09 09:12:25 +00:00
bsag
dace1ce903 Fixed projects drop down on edit page. You can now set the project to 'None' on the edit page. Fixes #27.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@62 a4c988fc-2ded-0310-b66e-134b36920a42
2005-04-09 09:06:42 +00:00
bsag
907c4b59ee Changed name of the db content file to make it clear that it should work with all of the database formats.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@61 a4c988fc-2ded-0310-b66e-134b36920a42
2005-04-08 17:49:53 +00:00
bsag
82019dfdbb [Patch by lolindrath - #9, #28] Fixes various incompatibilities with the database table and content dump files for MySQL, SQLite and PostgreSQL. Thanks, lolindrath!
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@60 a4c988fc-2ded-0310-b66e-134b36920a42
2005-04-08 17:47:14 +00:00
bsag
0daad70f0f [Patch by lolindrath #26] Sorting by date is now much smarter on /todo/list: Actions are sorted by ascending due date then ascending creation date, but non-due dated items sort to the bottom. This means that the most urgent items float to the top of each context list.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@59 a4c988fc-2ded-0310-b66e-134b36920a42
2005-04-07 20:48:32 +00:00
bsag
8998c7f520 Added a count of next actions to the /projects page, showing how many uncompleted next actions remain for each project. Fixes #7.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@58 a4c988fc-2ded-0310-b66e-134b36920a42
2005-04-03 15:03:59 +00:00
bsag
0577e850f6 [Contributed by Arnaud Limbourg, ticket:18] A new entry in settings.yml allows you to choose the number of completed actions you want to see on the /todo/list home page. Also sorts by due date (ascending) first, then creation date (descending) on /todo/list, /context/show/[name], and /project/show/[name]
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@57 a4c988fc-2ded-0310-b66e-134b36920a42
2005-04-03 11:45:05 +00:00
bsag
8fba2bebc6 Edited contributors list.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@56 a4c988fc-2ded-0310-b66e-134b36920a42
2005-03-30 21:06:57 +00:00
bsag
1b632830bc I *think* I've fixed the problem with hidden contexts not getting hidden. Lolindrath suggested putting quotes around the arguments to find_all_by_hide, and says that it fixed it for him. Should fix ticket:13.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@55 a4c988fc-2ded-0310-b66e-134b36920a42
2005-03-30 18:56:29 +00:00
bsag
ec69c71564 [Contributed by Nicholas Lee] Changes to the way that URLs are specified which should improve the situation for people using Tracks in a subdirectory.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@54 a4c988fc-2ded-0310-b66e-134b36920a42
2005-03-30 15:35:37 +00:00
bsag
310b763fb5 Fixed the enumeration of actions in hidden contexts on the /todo/list page, that was broken in changeset:49. Fixes ticket:16.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@53 a4c988fc-2ded-0310-b66e-134b36920a42
2005-03-30 09:53:46 +00:00
bsag
73a588fe26 Added a footer with links for various kinds of feedback on Tracks. Fixes ticket:1.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@52 a4c988fc-2ded-0310-b66e-134b36920a42
2005-03-30 09:43:22 +00:00