Commit Graph

121 Commits

Author SHA1 Message Date
Jean-Philippe Lang
914f57fefc Move duplicated back_url method from ApplicationHelper to ApplicationController (#32850).
Patch by Holger Just.

git-svn-id: http://svn.redmine.org/redmine/trunk@19486 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-02 08:38:01 +00:00
Toshi MARUYAMA
141b07d0c7 cleanup: rubocop: fix Layout/EmptyLines in test/helpers/application_helper_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19218 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-23 15:12:12 +00:00
Toshi MARUYAMA
07e9a824f0 cleanup: rubocop: fix Layout/SpaceInsideParens in test/helpers/application_helper_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19207 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-23 14:28:36 +00:00
Toshi MARUYAMA
829a14d431 cleanup: rubocop: fix Lint/ParenthesesAsGroupedExpression and Style/RedundantParentheses and Layout/SpaceAfterNot in test/helpers/application_helper_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19082 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-16 12:38:38 +00:00
Toshi MARUYAMA
eb18ef819f cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_principals_options_for_select_with_users_and_groups
git-svn-id: http://svn.redmine.org/redmine/trunk@19057 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 18:17:12 +00:00
Toshi MARUYAMA
6ea5d0c3c6 cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_principals_options_for_select_with_selected
git-svn-id: http://svn.redmine.org/redmine/trunk@19056 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 18:17:01 +00:00
Toshi MARUYAMA
0d6015be56 cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_principals_options_for_select_with_users
git-svn-id: http://svn.redmine.org/redmine/trunk@19055 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 18:16:50 +00:00
Toshi MARUYAMA
28ae34b68f cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_thumbnail_tag
git-svn-id: http://svn.redmine.org/redmine/trunk@19054 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 18:16:38 +00:00
Toshi MARUYAMA
22bce3517b cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_link_to_attachment
git-svn-id: http://svn.redmine.org/redmine/trunk@19053 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 18:16:27 +00:00
Toshi MARUYAMA
8e6014a9f8 cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_section_edit_links
git-svn-id: http://svn.redmine.org/redmine/trunk@19052 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 18:16:15 +00:00
Toshi MARUYAMA
aa28599b85 cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_attachment_links_to_images_with_email_format_should_not_be_parsed
git-svn-id: http://svn.redmine.org/redmine/trunk@19037 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 17:09:51 +00:00
Toshi MARUYAMA
9d210a3b94 cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest link_to_if_authorized
git-svn-id: http://svn.redmine.org/redmine/trunk@19033 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 16:33:22 +00:00
Toshi MARUYAMA
9a76c58688 cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_attached_images_with_hires_naming
git-svn-id: http://svn.redmine.org/redmine/trunk@19032 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 16:33:11 +00:00
Toshi MARUYAMA
d41969451b cleanup: rubocop: fix Layout/AlignArguments in IssuesHelper#test_redmine_links
git-svn-id: http://svn.redmine.org/redmine/trunk@19023 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 15:26:37 +00:00
Toshi MARUYAMA
029d315e79 cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_redmine_links_mercurial_commit
git-svn-id: http://svn.redmine.org/redmine/trunk@19018 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 14:10:40 +00:00
Toshi MARUYAMA
26343ea6b2 cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_redmine_links_git_commit
git-svn-id: http://svn.redmine.org/redmine/trunk@19017 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 14:10:27 +00:00
Toshi MARUYAMA
30ce5bfcab cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_cross_project_multiple_repositories_redmine_links
git-svn-id: http://svn.redmine.org/redmine/trunk@19015 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 14:10:14 +00:00
Toshi MARUYAMA
54eb01f045 cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_multiple_repositories_redmine_links
git-svn-id: http://svn.redmine.org/redmine/trunk@19013 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 14:10:02 +00:00
Toshi MARUYAMA
f59fdeeb4a cleanup: rubocop: fix Layout/BlockAlignment in ApplicationHelperTest#test_user_links_with_email_as_login_name_should_not_be_parsed_markdown
git-svn-id: http://svn.redmine.org/redmine/trunk@19008 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 11:53:37 +00:00
Toshi MARUYAMA
09c0dd3817 cleanup: rubocop: fix Layout/BlockAlignment in ApplicationHelperTest#test_user_links_with_email_as_login_name_should_not_be_parsed_textile
git-svn-id: http://svn.redmine.org/redmine/trunk@19007 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 11:53:26 +00:00
Toshi MARUYAMA
c8f1c4abd2 cleanup: rubocop: fix Layout/BlockAlignment in ApplicationHelperTest#test_should_not_parse_redmine_links_inside_link
git-svn-id: http://svn.redmine.org/redmine/trunk@19006 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 11:53:15 +00:00
Toshi MARUYAMA
4b5f1b17fb code layout clean up test/helpers/application_helper_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18985 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 05:24:35 +00:00
Toshi MARUYAMA
f11f3e6241 code layout clean up test/helpers/application_helper_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18980 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 02:20:09 +00:00
Toshi MARUYAMA
accab3c755 code cleanup: rubocop: fix Layout/SpaceBeforeComma in test/helpers/application_helper_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18838 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 16:06:20 +00:00
Toshi MARUYAMA
1961acdb87 code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_syntax_highlight
git-svn-id: http://svn.redmine.org/redmine/trunk@18808 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 11:40:58 +00:00
Toshi MARUYAMA
68ada471f4 code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_non_closing_pre_blocks_should_be_closed
git-svn-id: http://svn.redmine.org/redmine/trunk@18807 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 11:40:47 +00:00
Toshi MARUYAMA
ba370734a9 code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_pre_content_should_not_parse_wiki_and_redmine_links
git-svn-id: http://svn.redmine.org/redmine/trunk@18806 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 11:40:36 +00:00
Toshi MARUYAMA
7cae439d09 code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_pre_tags
git-svn-id: http://svn.redmine.org/redmine/trunk@18805 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 11:40:23 +00:00
Toshi MARUYAMA
211534fcca code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_syntax_highlight_ampersand_in_textile
git-svn-id: http://svn.redmine.org/redmine/trunk@18804 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 11:40:12 +00:00
Toshi MARUYAMA
b2cd8771f3 code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_inline_images_inside_tags
git-svn-id: http://svn.redmine.org/redmine/trunk@18803 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 11:40:00 +00:00
Toshi MARUYAMA
f1e26cbb54 code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_table_of_content
git-svn-id: http://svn.redmine.org/redmine/trunk@18802 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 11:39:49 +00:00
Toshi MARUYAMA
b7d2bd7b04 code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_table_of_content_should_generate_unique_anchors
git-svn-id: http://svn.redmine.org/redmine/trunk@18801 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 11:39:38 +00:00
Toshi MARUYAMA
cf44fcc9f7 code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_table_of_content_should_contain_included_page_headings
git-svn-id: http://svn.redmine.org/redmine/trunk@18800 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 11:39:26 +00:00
Toshi MARUYAMA
f404a13a20 code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in ApplicationHelperTest#test_section_edit_links
git-svn-id: http://svn.redmine.org/redmine/trunk@18799 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 11:39:14 +00:00
Toshi MARUYAMA
940377314b code cleanup: rubocop: fix Layout/IndentationConsistency in test/helpers/application_helper_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18644 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-13 16:22:31 +00:00
Go MAEDA
5ce4a363a9 Fix test failure due to missing call to set_tmp_attachments_directory (#32122).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18593 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-04 11:17:33 +00:00
Jean-Philippe Lang
1cc269967a Add a randomized name attribute to all form fields (#26604).
This is a workaround for a Bug in Firefox described at
https://bugzilla.mozilla.org/show_bug.cgi?id=1279253

Patch by Holger Just.

git-svn-id: http://svn.redmine.org/redmine/trunk@18306 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-20 16:46:10 +00:00
Go MAEDA
dd55d8f7e7 Update Rouge to 3.4.1 (#31556).
Patch by Marius BALTEANU and Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18258 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-16 10:46:27 +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
f992df684f Small refactorization of avatar methods (#31391).
* move existing methods from ApplicationHelper to a new helper file (AvatarsHelper)
* change default avatar size from 50 to 24 because most of the avatars are using the  size 24
* class 'gravatar' is always added and all custom classes are appended
* added user name as default title for avatar images
* added two new methods: @assignee_avatar@ and @author_avatar@

Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18175 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-19 22:27:41 +00:00
Go MAEDA
ae24985e03 Hierarchy in TOC is not preserved when Wiki index is exported to HTML (#20910).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18149 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-09 15:17:30 +00:00
Go MAEDA
bf0246ce83 Add avatar_server_url configuration option in order to support Libravatar (#9112).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18124 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-04 15:59:50 +00:00
Go MAEDA
0d061d43e8 Test for r18057 (#30441).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18058 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-12 05:42:31 +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
09b63e39ed Simpler link syntax "#note-123" to make a link to a note of the current issue (#30829).
Contributed by Marius BALTEANU and Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17993 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-20 05:15:59 +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
Jean-Philippe Lang
ccda34cac6 Display user's groups on profile (#12796).
Only for admins or when viewing its own profile.

git-svn-id: http://svn.redmine.org/redmine/trunk@17973 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 11:49:51 +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
193b02567b URLs end with "-" are rendered incorrectly in Textile (#30259).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17917 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-03 15:18:04 +00:00