Commit Graph

66 Commits

Author SHA1 Message Date
Marius Balteanu
9f6d8711e7 Return 406 status code instead of 500 when API request has an invalid format (#34766).
Patch by Felix Schäfer.


git-svn-id: http://svn.redmine.org/redmine/trunk@21392 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-30 13:39:06 +00:00
Go MAEDA
3686b77eb6 Update copyright year in source files to 2022 (#36379).
git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-02 05:29:10 +00:00
Go MAEDA
7de9711f25 Fix "ActionView::Template::Error (wrong number of arguments (given 2, expected 1))" (#29914).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@20886 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-01 14:54:36 +00:00
Go MAEDA
3e36b5c452 Update copyright year in source files to 2021 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-25 06:58:56 +00:00
Toshi MARUYAMA
c55c473c09 remove spaces inside {} of lib/redmine/views/other_formats_builder.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20461 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-21 13:52:30 +00:00
Toshi MARUYAMA
bd67226014 add empty line after guard clause to lib/redmine/views/labelled_form_builder.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-03 14:56:05 +00:00
Go MAEDA
907e0173e4 Update copyright year in source files to 2020 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-03 00:24:10 +00:00
Toshi MARUYAMA
fb913285f6 cleanup: rubocop: fix Layout/EmptyLinesAroundClassBody in lib/redmine/views/builders/structure.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19113 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-21 04:05:10 +00:00
Toshi MARUYAMA
e990236969 cleanup: rubocop: fix Layout/AlignArguments in lib/redmine/views/labelled_form_builder.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19043 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 17:10:41 +00:00
Toshi MARUYAMA
00820109e9 code cleanup: rubocop: fix Performance/RedundantBlockCall in lib/redmine/views/builders.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18819 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 12:40:57 +00:00
Toshi MARUYAMA
69c4cfd82a use "class << self" syntax for Redmine::Views::Builders#for (#32308)
git-svn-id: http://svn.redmine.org/redmine/trunk@18817 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 12:40:33 +00:00
Toshi MARUYAMA
a49307b002 use "if block_given?" instead of "if block" in lib/redmine/views/builders.rb (#32308)
git-svn-id: http://svn.redmine.org/redmine/trunk@18816 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 12:40:22 +00:00
Toshi MARUYAMA
3efe67f14d use "if block_given?" instead of "if block" in lib/redmine/views/builders/structure.rb (#32308)
git-svn-id: http://svn.redmine.org/redmine/trunk@18815 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 12:40:11 +00:00
Toshi MARUYAMA
030dbc7218 code cleanup: rubocop: fix Performance/RedundantBlockCall in lib/redmine/views/builders/structure.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18813 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 12:10:14 +00:00
Toshi MARUYAMA
57923d0450 code cleanup: rubocop: fix Layout/CaseIndentation in lib/redmine/views/builders.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18723 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-17 16:40:32 +00:00
Toshi MARUYAMA
e34eb2d89c code cleanup: rubocop: fix Style/WhenThen in lib/redmine/views/builders.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18722 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-17 16:40:20 +00:00
Go MAEDA
4082069c75 Update copyright year.
git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 07:36:06 +00:00
Go MAEDA
07b3087fda Enable frozen_string_literal for some files under app and lib directory (#26561).
git-svn-id: http://svn.redmine.org/redmine/trunk@17977 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 09:37:35 +00:00
Go MAEDA
5861160ffc Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future.


git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00
Jean-Philippe Lang
f130bf9e2b REST API with JSON content missing false values (#20788).
Patch by Yuichi HARADA.

git-svn-id: http://svn.redmine.org/redmine/trunk@17643 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-11-28 18:03:07 +00:00
Go MAEDA
9c99d50713 Removes request and response accessors from Structure class (#28564).
Patch by Jens Krämer.


git-svn-id: http://svn.redmine.org/redmine/trunk@17617 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-11-03 08:11:22 +00:00
Go MAEDA
db8afc99e1 Support of default ActiveRecord I18n scopes in LabelledFormBuilder (#26618).
Patch by Dmitry Lisichkin.


git-svn-id: http://svn.redmine.org/redmine/trunk@17365 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-06-04 02:26:48 +00:00
Jean-Philippe Lang
7fd04e1f8d Update copyright.
git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-25 08:40:31 +00:00
Jean-Philippe Lang
4df797956d Errors#get is deprecated in Rails 5.
git-svn-id: http://svn.redmine.org/redmine/trunk@16595 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-01 21:30:39 +00:00
Jean-Philippe Lang
e610fda877 Use #get instead of #[] to read errors on the attribute.
git-svn-id: http://svn.redmine.org/redmine/trunk@15988 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-11-19 11:10:07 +00:00
Jean-Philippe Lang
5b5b751d8c Show the entered value when it's not valid (#23996).
git-svn-id: http://svn.redmine.org/redmine/trunk@15971 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-11-18 14:17:11 +00:00
Jean-Philippe Lang
8b86d5158e Moves blocks definition to Redmine::MyPage.
git-svn-id: http://svn.redmine.org/redmine/trunk@15930 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-29 10:10:31 +00:00
Jean-Philippe Lang
b2044e6dfc Don't generate urls with params.
git-svn-id: http://svn.redmine.org/redmine/trunk@15631 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-10 19:18:12 +00:00
Jean-Philippe Lang
cda9c63d9c Updates copyright for 2016.
git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-13 10:30:10 +00:00
Jean-Philippe Lang
aaeb0807bf Accept dots in JSONP callback (#13718).
git-svn-id: http://svn.redmine.org/redmine/trunk@15066 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-01-16 09:08:06 +00:00
Jean-Philippe Lang
6c5e5142df Don't include milliseconds in JSON API responses (#19354).
git-svn-id: http://svn.redmine.org/redmine/trunk@14101 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-15 09:49:35 +00:00
Jean-Philippe Lang
177dd7bff1 Fixed that timestamps may not be formatted as expected in XML responses (#19065).
git-svn-id: http://svn.redmine.org/redmine/trunk@14015 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-02-16 17:57:52 +00:00
Jean-Philippe Lang
000124f44f Copyright update.
git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-11 09:09:50 +00:00
Jean-Philippe Lang
b8a586c475 Fixed: LabelledFormBuilder#label outputs 2 label elements (#18679).
Patch by Masato NODA.

git-svn-id: http://svn.redmine.org/redmine/trunk@13786 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-21 20:19:39 +00:00
Toshi MARUYAMA
b772319977 fix source indent of lib/redmine/views/labelled_form_builder.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@12958 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-03-11 09:59:56 +00:00
Toshi MARUYAMA
c67043e01c fix source indent of lib/redmine/views/labelled_form_builder.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@12957 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-03-11 09:59:40 +00:00
Toshi MARUYAMA
35cc911192 update copyright year (#15977)
Contributed by Daniel Felix.

git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-29 22:45:39 +00:00
Jean-Philippe Lang
2e2e2cfe42 Merged custom fields format refactoring.
git-svn-id: http://svn.redmine.org/redmine/trunk@12400 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-12-14 08:22:43 +00:00
Jean-Philippe Lang
9f127793be Make JSONP support optional and disabled by default (#12992).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11272 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-26 18:37:09 +00:00
Jean-Philippe Lang
e396a0eebe Copyright for 2013 (#12788).
Patch by Daniel Felix.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-12 09:29:31 +00:00
Jean-Philippe Lang
f474d1ff81 Explicitly load dependencies for when running with config.threadsafe! (#12097).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10909 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-02 18:06:06 +00:00
Jean-Philippe Lang
3c3bdb8bb0 Adds JSONP support to the API (#11469).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10088 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-07-27 19:56:49 +00:00
Etienne Massip
121ce2a390 Use time_zone_select specific helper.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9744 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-06-01 13:38:03 +00:00
Jean-Philippe Lang
ba5a052c8c Copyright update.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-05-05 12:56:53 +00:00
Toshi MARUYAMA
ad8193dcde fix label_for_field of LabelledFormBuilder always has class="error" in label tag
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9618 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-05-04 14:33:35 +00:00
Jean-Philippe Lang
5e57a1a9d9 Merged rails-3.2 branch.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9528 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-25 17:17:49 +00:00
Jean-Philippe Lang
04e7b18869 Fixed that export links include page parameter.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9382 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-11 17:02:21 +00:00
Jean-Philippe Lang
0c5af16e14 Support for nested array in API builder.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8720 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-29 18:29:09 +00:00
Jean-Philippe Lang
f56949af8b Do not add invalid label attribute to input tags.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8564 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-08 17:30:34 +00:00
Jean-Philippe Lang
877fbc15da Renamed TabularFormBuilder to Redmine::Views::LabelledFormBuilder.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8143 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 18:45:38 +00:00