Commit Graph

1987 Commits

Author SHA1 Message Date
Eric Davis 5b7a5c39a7 Added request and controller objects to the hooks by default.
The request and controller objects are now added to all hook contexts by
default.  This will also make url_for work better in hooks by setting up
the default_url_options :host, :port, and :protocol.

Finally a new helper method @render_or@ has been added to ViewListener.  This
will let a hook easily render a partial without a full method definition.

Thanks to Thomas Löber for the original patch.  #2542

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2429 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-10 03:12:40 +00:00
Eric Davis a3fa56d988 Added two new plugin hooks:
* :view_layouts_base_sidebar
* :view_layouts_base_content

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2428 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-10 01:24:32 +00:00
Eric Davis 0d01e07430 Added plugin hook :view_projects_roadmap_version_bottom. #2543
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2427 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-10 01:18:49 +00:00
Jean-Philippe Lang 2d3b3cee15 Strip keywords from received email body (#2436).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2426 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-09 20:17:58 +00:00
Jean-Philippe Lang c687219113 Removes hardcoded table names (#2701).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2424 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-09 17:24:06 +00:00
Jean-Philippe Lang 27e3b31c1e Fixed: TypeError (can't modify frozen string) on settings view (#2700).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2423 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-09 17:18:41 +00:00
Jean-Philippe Lang fc6d6b1e3b Fixed: migration 98 breaks when using table name prefix.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2415 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-08 17:24:39 +00:00
Jean-Philippe Lang b998572def Fixed: path parameter is not an array when changing diff style (#2695), broken by r2317.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2399 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-07 20:11:03 +00:00
Jean-Philippe Lang ff0c96011f Fixed: inline attached image should not match partial filename (#2683).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2363 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-05 20:25:01 +00:00
Jean-Philippe Lang 4aa90cc072 Typo in wiki link example (#2673).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2362 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-05 17:43:49 +00:00
Jean-Philippe Lang b11a1d852c Closed issue are not overdue, fixes r2140 (#2337).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2361 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-03 17:32:07 +00:00
Jean-Philippe Lang c9ca635fa7 Typos/fixes in views (#2654).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2360 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-03 17:15:59 +00:00
Jean-Philippe Lang 33bd7f45e1 Fixes message search eager loading (#2654).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2359 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-03 17:13:37 +00:00
Jean-Philippe Lang bf107f000d Adds a 'box' div around news comment form (#2632).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2353 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-02 17:34:12 +00:00
Jean-Philippe Lang 299f1b87aa Include both version date and name when sorting issues by target version (#1502).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2352 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-01 20:57:44 +00:00
Jean-Philippe Lang 2a220a9e42 Include both last and first name when sorting issues by assignee (#1841).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2351 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-01 20:56:10 +00:00
Jean-Philippe Lang ab5e07e83e Adds a setting to limit the number of revisions displayed on a repository file log (default=100).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2350 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-01 19:54:50 +00:00
Jean-Philippe Lang d3b2049851 Use estimated hours to weight issues in version completion calculation (#2182).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2349 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-01 18:54:05 +00:00
Jean-Philippe Lang d08ac5628a Changes color of activity events/search results summary.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2348 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-01 16:00:20 +00:00
Jean-Philippe Lang 4c312f3d6b Show line breaks in activity events summary.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2347 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-01 15:57:01 +00:00
Jean-Philippe Lang cbdf900629 Do not repeat one-line commit logs on the activity view.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2346 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-01 15:48:56 +00:00
Jean-Philippe Lang c83b41611a Fixed: Contextual divs after attachments are placed incorrectly in FireFox (#2633).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2345 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-01 14:36:38 +00:00
Jean-Philippe Lang 2ca4eea244 Less strict textile links parsing (#2582).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2344 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-31 14:50:56 +00:00
Jean-Philippe Lang f021c856c1 Fixed: issue details view discloses relations to issues that the user is not allowed to view (#2589).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2343 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-31 13:22:29 +00:00
Jean-Philippe Lang 2679150ed4 Removes Issue.visible_by
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2342 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-31 12:48:09 +00:00
Jean-Philippe Lang bbe8326477 Updates footer year.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2341 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-31 12:42:02 +00:00
winterheart f794ae582c New translation - Slovenian, thank to Nejc Vidmar for work (#2577), translation updates (#2129, #2586)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2340 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-31 12:02:37 +00:00
Jean-Philippe Lang ef903ba70e Adds :async_smtp and :async_sendmail delivery methods to perform email deliveries asynchronously.
Code from http://www.datanoise.com/articles/2006/7/14/asynchronous-email-delivery.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2339 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-31 11:43:54 +00:00
Jean-Philippe Lang da941734d7 Changes time related icons.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2338 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-30 17:50:28 +00:00
Jean-Philippe Lang 0f494a53c9 Cleaning test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2337 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-29 16:34:00 +00:00
Jean-Philippe Lang cf566a0c72 Fixed: TOC does not parse wiki page reference links with description (#2601).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2336 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-29 16:33:45 +00:00
Jean-Philippe Lang 945ec8942a Adds projects association on tracker form (#2578).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2335 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-29 14:22:56 +00:00
Jean-Philippe Lang 32d4378198 Adds rel='nofollow' attribute to other formats download links (#2491).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2334 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-29 13:54:44 +00:00
Jean-Philippe Lang f1aa0df326 Adds an helper to render other formats download links.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2333 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-29 13:53:17 +00:00
Jean-Philippe Lang bf76988ebc Fixed an error when downloading gantt png at global level.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2332 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-29 12:26:32 +00:00
Jean-Philippe Lang d590317856 Fixes other formats download links on the project issue list (project_id lost) broken r2317.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2331 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-29 11:09:46 +00:00
Jean-Philippe Lang 1e1b34b567 Sort target versions list on bulk edit form (#2616).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2330 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-29 09:05:36 +00:00
Jean-Philippe Lang 01d6ef2e57 Fixed project news atom link broken by r2317.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2329 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-28 21:25:35 +00:00
Jean-Philippe Lang c4af6efd25 Fixing calendar and gantt links broken by r2317.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2328 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-28 21:20:39 +00:00
Jean-Philippe Lang d1d1c9bfd0 Fixed calendar navigation links broken by r2317.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2327 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-28 21:11:13 +00:00
Jean-Philippe Lang 83fe973c75 Fixed user's activity atom feed broken by r2317.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2326 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-28 20:52:39 +00:00
Eric Davis 0bbebedada Fixed clearing the Issue filters in the issue list, broken by #2317
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2325 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-27 20:59:02 +00:00
Eric Davis 2fc7897044 Fixes Issue sorting in a project, broken by #2317
Issues were sorting but the project id wasn't being added so the
IssuesController would return all issues (cross-project).


git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2324 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-27 20:42:19 +00:00
Jean-Philippe Lang 10994e9027 Fixed: users should not be able to add relations with issues they're not allowed to view (#2589).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2323 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-27 19:33:03 +00:00
Jean-Philippe Lang cd55529eaa Fixed that 'My page' blocks may display issues that the user is no longer allowed to view (#2590).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2322 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-27 18:19:27 +00:00
Jean-Philippe Lang 837f074346 Explicitly require 'rfpdf/fpdf' (#2584).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2321 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-27 17:58:56 +00:00
Jean-Philippe Lang a4544b0b26 Fixed actions on issues (gantt, calendar, move, bulk_edit...) at global level broken by r2317.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2320 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-27 17:40:55 +00:00
Jean-Philippe Lang e1f96ca4db Replaces the obsolete robots.txt with a cached action (#2491).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2319 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-27 17:27:50 +00:00
Jean-Philippe Lang 6c93b8d599 Fixes activity pagination broken by r2317.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2318 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-26 17:43:58 +00:00
Eric Davis 765f7abc60 Converted routing and urls to follow the Rails REST convention.
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
2009-01-26 01:47:51 +00:00