Commit graph

4262 commits

Author SHA1 Message Date
bsag
7c454eb42d Fixed the calling of the Scriptaculous javascript files. Now you only need to call scriptaculous.js, and that calls effects, controls etc. Previously each of the files was getting called multiple times because I was loading scriptaculous.js '''and''' all the others.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@159 a4c988fc-2ded-0310-b66e-134b36920a42
2005-11-01 19:30:07 +00:00
bsag
a948beefee Fixes #135 (projects page incorrectly referring to context page for Sortable drag and drop code, so changes to project sort order were not sticking after a refresh.
Fixed #142 - the 500 error was being generated on dragging projects and contexts to reorder because the order method was looking for an order view and layout. I've added a :render => nothing statement to order now,and that seems to fix the error.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@158 a4c988fc-2ded-0310-b66e-134b36920a42
2005-10-31 07:52:07 +00:00
bsag
f39ebf6ec9 Continued the separating out of the new item forms for all the controllers. So the new item form for todo/list, project/show/[name] and context/show/[name] all use shared/add_new_item_form.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@157 a4c988fc-2ded-0310-b66e-134b36920a42
2005-10-30 19:12:08 +00:00
bsag
9867ca01ad Updated to work with Rails 0.14.1 (1.0 Release candidate) - fixes #145.
The bug where project associations didn't seem to be immediately displayed when next actions were added from the Context page is magically fixed! Fixes #142.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@156 a4c988fc-2ded-0310-b66e-134b36920a42
2005-10-30 12:21:50 +00:00
bsag
551e767b5e Sorted out the styling of the 'Fresh actions' box, so that the refresh link is more visible. Fixes #111.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@155 a4c988fc-2ded-0310-b66e-134b36920a42
2005-10-15 10:47:04 +00:00
bsag
69773d159d [Contributed by Luke]. Applied Luke's patch to enable newly created contexts and projects to be dragged and dropped. Fixes #136.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@154 a4c988fc-2ded-0310-b66e-134b36920a42
2005-10-15 10:27:02 +00:00
bsag
1e5425ffdc [Contributed by Andre]
A new print stylesheet, which prints nicely formatted on 3x5 index cards, with one context on each card. Fixes #89.

Thanks, Andre!


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@153 a4c988fc-2ded-0310-b66e-134b36920a42
2005-10-12 17:52:03 +00:00
bsag
5cdc9691d8 [Contributed by luke]
Access key hints are now added with Javascript, and are tailored appropriately to the platform (Ctrl for Macs, Alt for Windows).

Thanks, Luke!


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@152 a4c988fc-2ded-0310-b66e-134b36920a42
2005-10-12 13:28:21 +00:00
bsag
d695ede1be Deleting a project now also deletes any notes attached to it, so that errors aren't generated when [tracks_url]/notes is visited.
Fixes #138.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@151 a4c988fc-2ded-0310-b66e-134b36920a42
2005-10-12 13:00:19 +00:00
bsag
cc001264fc Deleted projects and contexts now properly disappear in the Ajax 'fade' style when the delete button is clicked.
References to context.reset and project.reset are replaced by the correct Form.reset. Also replaced all instances of Form.focus_first with the correct Form.focusFirstElement.

Tidied up the edit forms on the projects and contexts pages. There's a weird visual bug in Safari (doesn't happen in Firefox), where the selected input box appears to be empty and unselected. However, if you type, your input will replace the previous text, and if you tab immediately to another field, you'll see that the input field was '''not''' actually empty.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@150 a4c988fc-2ded-0310-b66e-134b36920a42
2005-10-12 12:51:14 +00:00
bsag
5e4f0f9fe8 Improved the security of the new drag and drop features of the projects and contexts lists by checking that the logged in user owns those items.
Also changed references to Form.focus_first which were defined in the removed file prototype-ex.js to Form.focusFirstElement, which is defined in prototype.js. Fixes #133.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@149 a4c988fc-2ded-0310-b66e-134b36920a42
2005-10-10 21:14:34 +00:00
bsag
5ce97df3f4 Quite a few changes in this revision:
1. The contexts and projects lists are now drag and droppable. In other words, if you visit [tracks_url]/projects or [tracks_url]/contexts, you can grab the 'DRAG' handle with the mouse and drag and drop the projects or contexts into your preferred order. At the same time, this re-orders the 'position' column appropriately, so that changes in order will be reflected on other pages. '''NB''': At the moment, deleting projects and contexts is a bit buggy. The item doesn't disappear, but if you refresh the page it will update appropriately. Also, if you add a new item, you can't drag it until you refresh. I'll try to fix these things. Fixes #115.
2. Fixed typo of 'tomorrow' due date label. Fixes #131
3. I updated the syntax for some of the visual effects to use the new {{{visual_effect(:fade, 'element')}}} syntax. Also removed the javascript files effects2 and prototype-ex, which aren't used now. 


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@148 a4c988fc-2ded-0310-b66e-134b36920a42
2005-10-09 17:51:31 +00:00
bsag
86b8753c17 I'm seriously beginning to hate #188, but it really is fixed now. Really. The problem before was that due to a weird conjunction of due dates and creation dates on my sample set, it did actually work for me. now I use the same bit of code to display the actions on the home page and on the txt page, so it really is the same. If anyone opens that ticket again, woe betide them... :-D
Also fixes #109: lolindrath's patch (plus a bit of extra tinkering) means that newly created and newly edited actions get the [C] link if they are on the projects page and the [P] link otherwise.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@147 a4c988fc-2ded-0310-b66e-134b36920a42
2005-10-02 10:35:07 +00:00
bsag
1043fefb1b '''Really''' fixes #118. Now sorts the actions themselves as well as the contexts in the same order as one the home page.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@146 a4c988fc-2ded-0310-b66e-134b36920a42
2005-09-30 17:11:09 +00:00
bsag
157d882483 Applied lolindrath's patch to a) mark overdue actions only with a red badge reading 'Overdue by X days' and b) label the due dates using relative descriptions ('Due today', 'Due tomorrow', 'Due in X days').
Fixes #102


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@145 a4c988fc-2ded-0310-b66e-134b36920a42
2005-09-28 17:16:42 +00:00
bsag
a8c7c73428 The TXT view now sorts contexts by position (hidden contexts are hidden), just as on the home page.
Fixes #118.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@144 a4c988fc-2ded-0310-b66e-134b36920a42
2005-09-27 17:25:54 +00:00
bsag
e392123933 Changed the old collapse.png and expand.png images, and replaced them witih the ones provided by lolindrath, which are bigger and slightly shaded in a rather nice way.
Also fixed the CSS so that when the context is collapsed, there's no white border still showing which looked messy and was a bit confusing.

Fixes #72.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@143 a4c988fc-2ded-0310-b66e-134b36920a42
2005-08-29 11:03:31 +00:00
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