summaryrefslogtreecommitdiffstats
path: root/app/controllers/application.rb
Commit message (Collapse)AuthorAgeFilesLines
* Upgraded to Rails 2.3.4 (#3597)Eric Davis2009-09-131-256/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Ran the Rails upgrade * Upgraded to Rails Engines 2.3.2 * Added a plugin to let Engines override application views. * Converted tests to use the new classes: ** ActionController::TestCase for functional ** ActiveSupport::TestCase for units * Converted ActiveRecord::Error message to a string. * ActiveRecord grouping returns an ordered hash which doesn't have #sort! * Updated the I18n storage_units format. * Added some default initializers from a fresh rails app * Changed the order of check_box_tags and hidden_field_tags. The hidden tag needs to appear first in Rails 2.3, otherwise it will override any value in the check_box_tag. * Removed the custom handler for when the cookie store is tampered with. Rails 2.3 removed the TamperedWithCookie exception and instead Rails will not load the data from it when it's been tampered with (e.g. no user login). * Fixed mail layouts, 2.3 has problems with implicit multipart emails that use layouts. Also removed some custom Redmine mailer code. * Fixed a bug that occurred in tests where the "required" span tag would be added to the :field_status translation. This resulted in an email string of: <li>Status<span class="required"> *</span><span class="required"> *</span> Instead of: <li>Status: New</li> git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2887 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Do not start user session when accessing atom feed with token-based ↵Jean-Philippe Lang2009-06-061-5/+8
| | | | | | authentication. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2779 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to allow non-admin users to create projects (#1007).Jean-Philippe Lang2009-05-171-2/+7
| | | | | | | This can be enabled in permissions settings. A non-admin user who creates a project is automatically added as a project member (the first role is given, TODO: make this given role configurable). Projects can be added from the public projects list. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2750 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allows multiple roles on the same project (#706). Prerequisite for user ↵Jean-Philippe Lang2009-05-101-4/+0
| | | | | | groups feature. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2726 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: When logging in via an autologin cookie the user's last_login_on ↵Jean-Philippe Lang2009-02-251-2/+13
| | | | | | should be updated (#2820). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2524 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.Jean-Philippe Lang2009-02-211-14/+21
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Display a warning if some attachments were not saved (#2008).Jean-Philippe Lang2009-01-031-1/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2224 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Undo unwanted change.Jean-Philippe Lang2008-12-121-3/+0
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2127 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rescue back_url param parsing on redirect.Jean-Philippe Lang2008-12-121-4/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2126 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces User.find_active with a named scope.Jean-Philippe Lang2008-11-301-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2079 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: inappropriate redirection to login or register page may occur ↵Jean-Philippe Lang2008-11-271-2/+2
| | | | | | (#2206). Eg. user clicks login link twice before logging in. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2062 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes back_url in login filter (#1900).Jean-Philippe Lang2008-09-241-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1905 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Unescape back_url param before calling redirect_to.Jean-Philippe Lang2008-09-211-1/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1893 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: login filter providing incorrect back_url for Redmine installed in ↵Jean-Philippe Lang2008-09-211-1/+1
| | | | | | sub-directory (#1900). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1890 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds cross-project time reports support (#994).Jean-Philippe Lang2008-08-311-1/+5
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1778 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moves @layout 'base'@ to ApplicationController.Jean-Philippe Lang2008-08-101-0/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1727 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Redirect user to the previous page after logging in (#1679).Jean-Philippe Lang2008-07-261-14/+11
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1695 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: browser's accept-language subcodes ignored (#1320).Jean-Philippe Lang2008-05-301-3/+3
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1481 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: Feed content limit setting has no effect (closes #954).Jean-Philippe Lang2008-03-301-0/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1310 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes #820: invalid project id causes a NoMethodError in SearchController ↵Jean-Philippe Lang2008-03-121-4/+8
| | | | | | (Angel Dobbs-Sciortino). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1237 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds an optional description to attachments.Jean-Philippe Lang2008-02-291-8/+12
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1180 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed a bug in localization introduced by r1131 (anonymous users inherit the ↵Jean-Philippe Lang2008-02-131-0/+1
| | | | | | language of the first anonymous user). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1144 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: Anonymous users may not see the issue list headers in the correct ↵Jean-Philippe Lang2008-02-101-1/+1
| | | | | | language. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1131 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Show explicit error message when the scm command failed (eg. when svn binary ↵Jean-Philippe Lang2008-01-231-0/+5
| | | | | | is not available). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1094 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Highlight the current item of the main menu.Jean-Philippe Lang2008-01-191-0/+3
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1076 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Non-ascii attachement filename fix for IE.Jean-Philippe Lang2008-01-101-0/+5
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1053 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moved current user management to a dedicated method for modularity.Jean-Philippe Lang2007-12-301-5/+10
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1029 e93f8b46-1217-0410-a6f0-8f06a7374b81
* New setting added to specify how many objects should be displayed on most ↵Jean-Philippe Lang2007-12-291-0/+15
| | | | | | | | | paginated lists. Default is: 25, 50, 100 (users can choose one of these values). If one value only is entered in this setting (eg. 25), the 'per page' links are not displayed (prior behaviour). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1026 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added ApplicationController#attach_files as a common method to attach files ↵Jean-Philippe Lang2007-12-141-0/+13
| | | | | | in all actions. git-svn-id: http://redmine.rubyforge.org/svn/trunk@990 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Anonymous users can now be allowed to create, edit, comment issues, comment ↵Jean-Philippe Lang2007-11-201-4/+0
| | | | | | | | news and post messages in the forums. These permissions need to be explicitly given to the Anonymous role (Admin -> Roles & Permissions -> Anonymous). git-svn-id: http://redmine.rubyforge.org/svn/trunk@919 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Some slight improvements in AJAX errors handling.Jean-Philippe Lang2007-10-281-2/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@874 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed @html_title assignments in controllers.Jean-Philippe Lang2007-09-071-2/+0
| | | | | | Views can now set the header title using set_htmh_title(title) method. git-svn-id: http://redmine.rubyforge.org/svn/trunk@715 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added atom feed on the new cross-project issue list.Jean-Philippe Lang2007-08-311-2/+3
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@686 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added cache for application settings (Setting model).Jean-Philippe Lang2007-08-311-0/+1
| | | | | | Once the values are cached, only one database query is done at each user request (to check if the cache is still valid). git-svn-id: http://redmine.rubyforge.org/svn/trunk@685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: autologin broken.Jean-Philippe Lang2007-08-301-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@683 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged 0.6 branch into trunk.Jean-Philippe Lang2007-08-291-49/+43
| | | | | | | | | Permissions management was rewritten. Some permissions can now be specifically defined for non member and anonymous users. This migration: * is irreversible (please, don't forget to *backup* your database before upgrading) * resets role's permissions (go to "Admin -> Roles & Permissions" to set them after upgrading) git-svn-id: http://redmine.rubyforge.org/svn/trunk@674 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Applied this fix http://dev.rubyonrails.org/ticket/4967 to solve namespaced ↵Jean-Philippe Lang2007-06-121-0/+4
| | | | | | models dependencies problem. git-svn-id: http://redmine.rubyforge.org/svn/trunk@561 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added the ability to archive projects:Jean-Philippe Lang2007-05-271-0/+10
| | | | | | | | | * Only administrators can archive/unarchive projects. * Once archived, the project is visible on the admin project listing only. It doesn't show up anywhere else in the app. Subprojects are also archived. * Archive/unarchive preserve everything on the project (issues, members, ...). * A subproject can not be unarchived if its parent project is archived. git-svn-id: http://redmine.rubyforge.org/svn/trunk@549 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added autologin feature (disabled by default).Jean-Philippe Lang2007-05-061-0/+7
| | | | | | | To enable this feature, go to administration settings and choose a duration for autologin. When enabled, a checkbox on the login form lets users activate autologin. git-svn-id: http://redmine.rubyforge.org/svn/trunk@514 e93f8b46-1217-0410-a6f0-8f06a7374b81
* A 403 error page is now displayed (instead of a blank page) when trying to ↵Jean-Philippe Lang2007-04-301-3/+10
| | | | | | access a protected page. git-svn-id: http://redmine.rubyforge.org/svn/trunk@495 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Modified logged_in_user_membership controller method so that it returns a roleJean-Philippe Lang2007-04-041-3/+4
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@415 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Various code cleaning, mainly on User, Permission and IssueStatus models.Jean-Philippe Lang2007-04-041-2/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@414 e93f8b46-1217-0410-a6f0-8f06a7374b81
* added svn:eol-style native property on /app filesJean-Philippe Lang2007-03-121-131/+131
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@333 e93f8b46-1217-0410-a6f0-8f06a7374b81
* wiki branch merged into trunkJean-Philippe Lang2007-03-101-0/+14
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@323 e93f8b46-1217-0410-a6f0-8f06a7374b81
* patch #9104 Disable cleartext logging of passwords in log filesJean-Philippe Lang2007-03-071-0/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@310 e93f8b46-1217-0410-a6f0-8f06a7374b81
* * replaced :controller => '' broken statements by :controller => 'welcome'Jean-Philippe Lang2007-01-251-4/+4
| | | | | | * request_uri method no more used git-svn-id: http://redmine.rubyforge.org/svn/trunk@175 e93f8b46-1217-0410-a6f0-8f06a7374b81
* settings are now stored in the database (config_custom.rb no more used) and ↵Jean-Philippe Lang2007-01-211-3/+3
| | | | | | editable through the application in: Admin -> Settings git-svn-id: http://redmine.rubyforge.org/svn/trunk@167 e93f8b46-1217-0410-a6f0-8f06a7374b81
* ActiveRecord::RecordNotFound exceptions handled more gracefullyJean-Philippe Lang2007-01-021-0/+6
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@133 e93f8b46-1217-0410-a6f0-8f06a7374b81
* replaced deprecated controller instance variables: @params, @session, @requestJean-Philippe Lang2006-12-261-2/+2
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@127 e93f8b46-1217-0410-a6f0-8f06a7374b81
* various eager loadings addedJean-Philippe Lang2006-12-161-1/+1
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@98 e93f8b46-1217-0410-a6f0-8f06a7374b81