summaryrefslogtreecommitdiffstats
path: root/test/unit/helpers
Commit message (Collapse)AuthorAgeFilesLines
* Refactor: convert WikiController to a REST resourceEric Davis2010-10-281-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4303 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: auto links ending with right angle bracket shouldn't include the ↵Jean-Baptiste Barth2010-10-231-0/+2
| | | | | | bracket in the URL. #5652 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4287 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Revert part of r4064.Eric Davis2010-10-151-9/+0
| | | | | | | Having link_to_if_authorized support urls has too many edge cases and isn't working with sub-uris. #6195 #6513 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4257 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rewrite the Gantt chart. #6276Eric Davis2010-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This version of the Gantt chart supports nested charts. So Projects, Versions, and Issues will be nested underneath their parents correctly. Additional features: * Move all Gantt code to Redmine::Helpers::Gantt class instead of having it in the Gantt class, controller, and view * Recursive and nest sub-projects * Recursive and nest versions * Recursive and nest issues * Draw a line showing when a Project is active and it's progress * Draw a line showing when a Version is active and it's progress * Show a version's % complete * Change the color of Projects, Versions, and Issues if they are late or behind schedule * Added Project#start_date and #due_date * Added Project#completed_percent * Use a mini-gravatar on the Gantt chart * Added tests for the Gantt rendering git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4072 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Change link_to_if_authorized to allow url paths. (Fixes #6195)Eric Davis2010-09-061-0/+29
| | | | | | | | | Both url paths (/issues/1234) and params hashes (:controller => 'issues') are now supported by link_to_if_authorized. The authorize_for method requires a controller/action pair so urls need to be parsed against the routes to find their controller/action. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4064 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use the built in Rails ActionView::TestCase for testing helpers.Eric Davis2010-09-061-4/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4063 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor: Extract a new IssueMovesController from IssuesController.Eric Davis2010-08-111-0/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3936 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor: added link_to_project helper to handle links to projectsJean-Baptiste Barth2010-08-081-0/+12
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3924 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Sanitize image links and handle nils in the toc formatter. #5445Eric Davis2010-06-241-1/+5
| | | | | | Based on contribution by Yuki Kita. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3811 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Display the link name when external links are used in the toc macro. #5445Eric Davis2010-06-191-0/+2
| | | | | | Contributed by Yuki Kita and Jean-Baptiste Barth git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3786 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes broken test.Jean-Philippe Lang2010-03-281-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3622 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Escape href attribute in auto links (#5179).Jean-Philippe Lang2010-03-241-1/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3612 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Accept issue links inside brackets (#4418).Jean-Philippe Lang2010-03-171-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3598 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Close unclosed pre/code tags (#4265).Jean-Philippe Lang2010-03-151-0/+14
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3590 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Do not parse redmine links inside pre/code tags (#1288).Jean-Philippe Lang2010-03-151-0/+27
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3589 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed closing tags in syntax highlighting tests.Jean-Philippe Lang2010-03-151-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3587 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace the hardcoded "CodeRay" css class name for highlighted elements.Jean-Philippe Lang2010-03-141-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3585 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Optimization: load attachments when needed.Jean-Philippe Lang2010-03-141-0/+8
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3581 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added unit tests for IssuesHelper#show_detailEric Davis2010-03-081-0/+159
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3552 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: Pound (#) followed by number with leading zero (0) removes leading ↵Jean-Philippe Lang2010-02-181-0/+2
| | | | | | zero when rendered in wiki (#4872). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3451 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds projects links (#4812).Jean-Philippe Lang2010-02-131-2/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3422 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add test for #4354.Jean-Philippe Lang2009-12-091-0/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3142 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: Bulk edit of issues throws 500 if no versions are defined on the ↵Jean-Philippe Lang2009-12-091-0/+5
| | | | | | project (#4366). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3140 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Version sharing (#465) + optional inclusion of subprojects in the roadmap ↵Jean-Philippe Lang2009-12-061-0/+63
| | | | | | | | | | | | | | | | view (#2666). Each version of a project can be shared with: * subprojects * projects in the project hierarchy: ancestors + descendants (needs versions management permission on the root project) * projects in the project tree: root project + all its descendants (same as above) * all projects (can be set by admin users only) Notes: * when sharing a version of a private project with others projects, its name will be visible within the other projects * a project with versions used by non descendant projects can not be archived git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3123 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed some tests that where looking for specific issue urls but weren't matchingEric Davis2009-11-141-1/+1
| | | | | | the css classes for the link. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3049 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed pre tags containing "<pre*" (#4125).Jean-Philippe Lang2009-11-111-0/+22
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3030 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes ApplicationHelper#link_to_userJean-Philippe Lang2009-11-111-0/+20
| | | | | | | * No link to a locked user page (closes #4182) * Translate Anonymous string git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3024 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes distance of date in words calculation.Jean-Philippe Lang2009-11-071-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3016 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: inline images in wiki headings (#4112).Jean-Philippe Lang2009-11-041-0/+13
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2999 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a test for attached image inside a link (#4033).Jean-Philippe Lang2009-10-241-1/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2962 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Changed the Timelogs to use both the Systemwide and Project specific ↵Eric Davis2009-10-211-0/+56
| | | | | | | | | | | | TimeEntryActivities * Added Project#activities to return all the Systemwide and Project specific activities, excluding Systemwide ones that are overridden. * Added some tests for TimelogHelper. #4077 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2948 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Sets file encoding to utf-8 for ruby 1.9.Jean-Philippe Lang2009-10-101-0/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2910 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds missing native eol properties.Jean-Philippe Lang2009-09-201-85/+85
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2895 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Missing 'test_' prefix on a helper test caused it to not run.Eric Davis2009-09-031-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2853 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow line breaks in wiki table cells (#2346).Jean-Philippe Lang2009-07-191-1/+40
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2824 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes artefacts in truncated search results (#3622).Jean-Philippe Lang2009-07-181-0/+45
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2822 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Do not require a non-word character after a comma in Redmine links (#3561).Jean-Philippe Lang2009-07-041-0/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2804 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Less aggressive textile image tag parsing (#3209).Jean-Philippe Lang2009-04-211-0/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2677 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add test for r2664 (#3127).Jean-Philippe Lang2009-04-071-1/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2665 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixing tests (sort refactoring).Jean-Philippe Lang2009-03-121-3/+15
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2577 e93f8b46-1217-0410-a6f0-8f06a7374b81
* SortHelper refactoring:Jean-Philippe Lang2009-03-101-0/+73
| | | | | | | | * multiple columns sort feature (#2871) * CSS classes instead of an image tag to reflect the state of the column * examples fixed (#2945) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2571 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: Undefined Method (l_YesNo) Being Called (#2867).Jean-Philippe Lang2009-03-011-0/+29
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2541 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.Jean-Philippe Lang2009-02-211-42/+8
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Leave wiki links untouched if target project doesn't exist or have no wiki.Jean-Philippe Lang2009-02-101-0/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2436 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: inline attached image should not match partial filename (#2683).Jean-Philippe Lang2009-02-051-1/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2363 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Cleaning test.Jean-Philippe Lang2009-01-291-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2337 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: TOC does not parse wiki page reference links with description (#2601).Jean-Philippe Lang2009-01-291-3/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2336 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Converted routing and urls to follow the Rails REST convention.Eric Davis2009-01-261-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch supplied by commits from Gerrit Kaiser on Github. Existing routes will still work (backwards compatible) but any new urls will be generated using the new routing rules. Changes listed below: * made the URLs for some project tabs and project settings follow the new rails RESTful conventions of /collection/:id/subcollection/:sub_id * prettier URL for project roadmap * more nice project URLs * use GET for filtering form * prettified URLs used on issues tab * custom route for activity atom feeds * prettier repository urls * fixed broken route definition * fixed failing tests for issuecontroller that were hardcoding the url string * more RESTful routes for boards and messages * RESTful routes for wiki pages * RESTful routes for documents * moved old routes that are retained for compatibility to the bottom and grouped them together * added RESTful URIs for issues * RESTfulness for the news section * fixed route order * changed hardcoded URLs in tests * fixed badly written tests * fixed forgotten parameter in routes * changed hardcoded URLS to new scheme * changed project add url to the standard POST to collection * create new issue by POSTing to collection * changed hardcoded URLs in integrations tests * made project add form work again * restful routes for project deletion * prettier routes for project (un)archival * made routes table more readable * fixed note quoting * user routing * fixed bug * always sort by GET * Fixed: cross-project issue list should not show issues of projects for which the issue tracking module was disabled. * prettified URLs used on issues tab * urls for time log * fixed reply routing * eliminate revision query paremeter for diff and entry actions * fixed test failures with hard-coded urls * ensure ajax links always use get * refactored ajax link generation into separate method #1901 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2317 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Disable textile inline styles to prevent XSS attacks (#2377).Jean-Philippe Lang2008-12-281-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2192 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed bold syntax around single character in series (#2351).Jean-Philippe Lang2008-12-281-1/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2191 e93f8b46-1217-0410-a6f0-8f06a7374b81