Commit Graph

120 Commits

Author SHA1 Message Date
Go MAEDA
a9518e28b8 Fix RuboCop offense Rails/HttpStatus (#39889).
git-svn-id: https://svn.redmine.org/redmine/trunk@22837 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-18 05:56:55 +00:00
Marius Balteanu
38d950df55 Remove current year from source file copyright headers and update year in footer to 2024 (#40043).
git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-26 22:55:54 +00:00
Go MAEDA
1481c721a2 Use require_relative instead of require File.expand_path(..., __FILE__) (#38093).
Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-01 07:13:39 +00:00
Go MAEDA
92bd67c279 Update copyright year to 2023 (#38141).
git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-01 06:19:35 +00:00
Marius Balteanu
df9ff95f2b Add tests for #37772.
Patch by Holger Just.


git-svn-id: https://svn.redmine.org/redmine/trunk@21979 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-12-01 15:27:17 +00:00
Marius Balteanu
e96d8038fc Revert r21975.
git-svn-id: https://svn.redmine.org/redmine/trunk@21977 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-12-01 15:21:37 +00:00
Marius Balteanu
3f5f020a78 Add tests for #37772.
Patch by Holger Just.


git-svn-id: https://svn.redmine.org/redmine/trunk@21975 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-12-01 15:18:04 +00:00
Go MAEDA
fcf1352c6b Redirect to container URL in case of error in attachments#download_all (#37880).
Patch by Holger Just.


git-svn-id: https://svn.redmine.org/redmine/trunk@21948 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-11-03 05:17:48 +00:00
Go MAEDA
aeabd4682a Constraints *_all attachments routes to actually supported values of container_type (#37772).
Patch by  Jens Krämer.


git-svn-id: https://svn.redmine.org/redmine/trunk@21906 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-10-20 04:13:21 +00:00
Marius Balteanu
9fc669a888 Make common_mark the default text formatting for new installations (#34863).
git-svn-id: https://svn.redmine.org/redmine/trunk@21897 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-10-04 19:19:15 +00:00
Marius Balteanu
239c198a68 Fix two typos.
git-svn-id: https://svn.redmine.org/redmine/trunk@21597 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-05-17 21:21:41 +00:00
Go MAEDA
6a46743cd3 Fix code copying in common browsers (#36580).
Patch by Vitaly vit9696.


git-svn-id: http://svn.redmine.org/redmine/trunk@21415 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-02-19 07:36:40 +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
Marius Balteanu
f31a1e2bbb Fixed attachments deletable by user without edit issue permission on tracker (#35634).
git-svn-id: http://svn.redmine.org/redmine/trunk@21142 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-05 23:50:11 +00:00
Marius Balteanu
1146831b3d Adds tests for issue attachment edit by user without edit issue permission on tracker (#35634).
git-svn-id: http://svn.redmine.org/redmine/trunk@21141 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-05 23:48:47 +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
Go MAEDA
8e6829ec55 Add missing fixtures to AttachmentsControllerTest (#34321).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20505 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-27 03:06:52 +00:00
Toshi MARUYAMA
4bf1745cd8 fix source indent of AttachmentsControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20082 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-26 15:01:54 +00:00
Go MAEDA
4a7bc593af Display bulk_download_max_size in human-readable representation (#7056).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19609 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-23 05:52:40 +00:00
Go MAEDA
ab47fb8ae0 Download all attachments at once (#7056).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19601 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-21 05:59:31 +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
Go MAEDA
69c794f368 Add missing fixtures to AttachmentsControllerTest (#32929).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19485 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-31 07:21:05 +00:00
Go MAEDA
f37ed77665 Use #media_type instead of #content_type to test the MIME type of a response (#32886).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19467 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-27 03:54:25 +00:00
Toshi MARUYAMA
e5e0c52768 cleanup: rubocop: fix Layout/IndentFirstHashElement in test/functional/attachments_controller_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19233 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 05:27:18 +00:00
Toshi MARUYAMA
7193c1372d cleanup: rubocop: fix Layout/SpaceInsideHashLiteralBraces in test/functional/attachments_controller_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19232 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 05:27:07 +00:00
Go MAEDA
2e6b3b9248 Skip AttachmentsControllerTest#test_thumbnail_for_pdf_should_be_png when ImageMagick convert is not available (#32307, #22481).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18826 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 14:12:09 +00:00
Go MAEDA
3ce678510e Render Textile and Markdown attachments on the preview page (#29752).
Patch by Takenori TAKAKI.


git-svn-id: http://svn.redmine.org/redmine/trunk@18584 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-03 00:09:28 +00:00
Go MAEDA
1e53dd7e11 Fixes not to call set_tmp_attachments_directory twice after each test (#32094).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18484 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-20 01:31:13 +00:00
Go MAEDA
f1c29cdb8c Run test only when GhostScript is available (#22481).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18221 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-02 23:39:15 +00:00
Go MAEDA
3be6fea8e2 Remove trailing whitespaces from test/functional/attachments_controller_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18219 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-02 23:21:40 +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
96b6bdfb77 Test for r18158 (#22481).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18159 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-12 05:43:50 +00:00
Go MAEDA
3bccfe8227 Correct the fixture id (#31275).
git-svn-id: http://svn.redmine.org/redmine/trunk@18099 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-30 02:03:40 +00:00
Go MAEDA
6732ce9a93 Fix that Content-Type header field is empty when sending a file of unknown type (#31275).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18098 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-30 01:37:25 +00:00
Go MAEDA
b900ae6107 Support frozen_string_literal in test/**/*.rb (#26561).
Contributed by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@17996 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-21 03:27:53 +00:00
Go MAEDA
26509e7f4c Decode hexadecimal-encoded literals in order to be frozen string literals friendly (#31004).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17991 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-19 15:43:55 +00:00
Go MAEDA
e70c283a22 Remove unnecessary encoding magic comment (#31034).
The default script encoding is UTF-8 in Ruby 2.0 or later.

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17976 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 06:26:33 +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
Go MAEDA
8cf95006bf Fix a test failure (#13688).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17851 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-05 23:40:15 +00:00
Jean-Philippe Lang
887b8d2fdf Adds a link to container on attachments edit form.
git-svn-id: http://svn.redmine.org/redmine/trunk@17722 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-12-12 18:51:34 +00:00
Go MAEDA
dcc7ecb34a Attachments prev/next navigation (#29395).
Patch by Jens Krämer.


git-svn-id: http://svn.redmine.org/redmine/trunk@17567 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-04 13:20:11 +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
580b591c57 Add download link to no preview message (#26035).
Patch by Jan Schulz-Hofen.

git-svn-id: http://svn.redmine.org/redmine/trunk@16673 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-17 09:51:19 +00:00
Jean-Philippe Lang
d66dc72d69 Rename a few tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@16653 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-10 10:50:06 +00:00
Jean-Philippe Lang
4d4f330b0c Highlight menu item when viewing an attachment (#25988).
git-svn-id: http://svn.redmine.org/redmine/trunk@16652 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-10 10:48:34 +00:00
Jean-Philippe Lang
b834e81d7f Use Rails 5 syntax for functional tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@16585 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-05-31 17:32:34 +00:00
Jean-Philippe Lang
a2bcc9c40e Rename AttachmentsController#edit and #update to #edit_all and #update_all (#22356).
git-svn-id: http://svn.redmine.org/redmine/trunk@15860 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-01 12:46:29 +00:00
Jean-Philippe Lang
76bf2404d5 Allow to download javascript attachments again (#23376).
Patch by Holger Just.

git-svn-id: http://svn.redmine.org/redmine/trunk@15856 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-01 09:24:34 +00:00
Jean-Philippe Lang
ec31b61698 Removes calls to #assert_template and #assigns in functional tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@15695 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-18 21:26:30 +00:00
Jean-Philippe Lang
2e4e610930 Adds our own class for controller tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@15661 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-14 09:35:49 +00:00