summaryrefslogtreecommitdiffstats
path: root/app/controllers/messages_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove current year from source file copyright headers and update year in ↵Marius Balteanu2024-02-261-1/+1
| | | | | | footer to 2024 (#40043). git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Explicitly render a 404 on non-JS requests to messages#quote (#39999).Marius Balteanu2024-01-031-0/+5
| | | | | | Patch by Holger Just (@hjust). git-svn-id: https://svn.redmine.org/redmine/trunk@22584 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of MessagesControllerToshi MARUYAMA2020-11-141-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20374 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add empty line after guard clause to MessagesControllerToshi MARUYAMA2020-11-051-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20263 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r19569 (#33071).Go MAEDA2020-03-141-2/+0
| | | | | | | 404 error after deleting an attachment. git-svn-id: http://svn.redmine.org/redmine/trunk@19579 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Require sudo mode for actions to delete contents (#33071).Go MAEDA2020-03-101-0/+2
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19569 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Include attachments in forum post notifications (#16006).Go MAEDA2020-02-111-7/+9
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19506 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/AccessModifierIndentation and ↵Toshi MARUYAMA2019-10-221-1/+2
| | | | | | Layout/EmptyLinesAroundAccessModifier in app/controllers/messages_controller.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18824 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Insert a link to the source to the attribution line when quoting a note or a ↵Go MAEDA2019-06-021-1/+5
| | | | | | | | | message (#31427). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@18217 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support frozen_string_literal in app/**/*.rb (#26561).Go MAEDA2019-03-171-2/+2
| | | | | | | Contributed by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17987 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Display notice on forum updates (#2635).Go MAEDA2018-12-151-0/+3
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17738 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds preview option to the wiki toolbar (#27758).Jean-Philippe Lang2018-09-261-1/+1
| | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17521 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use .before_action instead of .before_filter.Jean-Philippe Lang2016-07-141-4/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15655 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-221-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed flawed regexp for removing pre blocks when quoting messages (#16353).Jean-Philippe Lang2014-03-171-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12973 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails4: replace deprecated passing options to find at MessagesControllerToshi MARUYAMA2014-01-081-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12520 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Cleanup of finders with :conditions option.Jean-Philippe Lang2013-06-121-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11963 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that requesting a message from an invalid forum should respond with ↵Jean-Philippe Lang2013-02-201-1/+2
| | | | | | 404 (#13232). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11446 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use #per_page instead of #items_per_page.Jean-Philippe Lang2013-02-171-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11425 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-121-1/+1
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Deprecation warnings (#12774).Jean-Philippe Lang2013-01-081-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11139 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged ajax_upload branch (#3957).Jean-Philippe Lang2012-12-101-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10977 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces find(:all) calls.Jean-Philippe Lang2012-12-021-4/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10914 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set @previewed for rendering preview partial.Jean-Philippe Lang2012-07-311-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10145 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support for subforums (#3831).Jean-Philippe Lang2012-07-311-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10142 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removes RJS from MessagesController.Jean-Philippe Lang2012-07-191-14/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10053 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use named routes.Jean-Philippe Lang2012-07-151-6/+8
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10003 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2012-05-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-3.2 branch.Jean-Philippe Lang2012-04-251-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9528 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Prevent mass-assignment when adding/updating a forum message (#10390).Jean-Philippe Lang2012-03-061-11/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9133 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removes all #verify calls in controllers. Verification is handled at routing ↵Jean-Philippe Lang2012-03-031-3/+0
| | | | | | level now that the default route is removed. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9061 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Preserve uploaded files when creating a forum topic.Jean-Philippe Lang2012-02-231-5/+7
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8940 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update MessagesController#quote to match the input id changed in r7682 (#9672).Jean-Philippe Lang2011-11-271-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7961 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from app/controllers/messages_controller.rb.Toshi MARUYAMA2011-08-311-14/+14
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6895 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor: Decouple failed attachments and the flash messagesEric Davis2010-03-031-3/+3
| | | | | | | | | | | Attachment#attach_files will no longer need to return a flash message, instead it will put unsaved attachments into object#unsaved_attachments where the calling object can access them. A utility method #render_attachment_warning_if_needed is included for setting the standard flash warning. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3528 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactor: Moved ApplicationController#attach_files to the Attachment modelEric Davis2010-03-021-3/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3523 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds pagination to forum messages (#4664).Jean-Philippe Lang2010-02-061-5/+19
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3373 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removes "xxx and return" calls (#4446).Jean-Philippe Lang2009-12-181-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3185 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that "RE:" prefix is added to the subject each time the message is ↵Jean-Philippe Lang2009-11-131-1/+2
| | | | | | quoted (#4215). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3038 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: Quoting in forums does not take the subject from the message being ↵Jean-Philippe Lang2009-11-131-0/+2
| | | | | | quoted (#4215). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3035 e93f8b46-1217-0410-a6f0-8f06a7374b81