Go MAEDA
6e781f6479
Fix that "Successful deletion" notice is not displayed after deleting some types of content ( #33116 ).
...
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19641 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-04-04 00:43:28 +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
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
Go MAEDA
62fe933eed
Ruby 2.7: Remove deprecated URI.escape/unescape ( #32752 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19455 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-23 23:28:34 +00:00
Go MAEDA
f55aa76958
Fix random test failure due to missing call to set_tmp_attachments_directory in WikiControllerTest ( #32653 ).
...
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19406 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-04 04:47:38 +00:00
Toshi MARUYAMA
2efe9dc610
cleanup: rubocop: fix Layout/AlignArguments in test/functional/wiki_controller_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18949 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-08 06:26:54 +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
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
5e64b4aa67
Show locked badge for protected pages ( #9634 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18085 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-27 03:31:22 +00:00
Go MAEDA
4f5a3a156c
Enable frozen_string_literal for some files under test directory ( #26561 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@17978 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 15:03:47 +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
1d5fd81871
Fix typo ( #29503 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@17691 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-12-06 13:23:25 +00:00
Go MAEDA
e6e02e5e45
Discourage search engines from indexing old versions of wiki pages ( #29503 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17690 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-12-06 00:40:39 +00:00
Jean-Philippe Lang
8eb8cdc06d
Remove link to current version, already present in the page breadcrumb ( #26575 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@17510 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-09-23 13:58:45 +00:00
Go MAEDA
399a66a9a9
Bulk delete wiki attachments ( #16410 ).
...
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17453 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-07-25 14:35:18 +00:00
Jean-Philippe Lang
f57cacb284
Don't repeat revision on each line.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@17398 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-06-17 09:03:57 +00:00
Toshi MARUYAMA
0f6fd7584b
fix file name corruption when export a wiki page with non-ASCII title in MS browsers ( #26599 )
...
Contributed by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@16957 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-08-30 15:46:45 +00:00
Jean-Philippe Lang
e930ee8e98
Adds a checkbox to set a page as the wiki start page ( #26579 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16915 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-30 07:38:48 +00:00
Jean-Philippe Lang
71423af0b2
Get rid of acts_as_versioned.
...
WikiContent::Version becomes WikiContentVersion.
git-svn-id: http://svn.redmine.org/redmine/trunk@16889 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-26 16:41:06 +00:00
Jean-Philippe Lang
5de545fd79
Set the parent page when creating a new wiki page from the "Add page" link ( #26043 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16774 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-08 13:51:18 +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
Toshi MARUYAMA
01defc7514
remove trailing white spaces from test/functional/wiki_controller_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16645 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-10 04:55:17 +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
650a64cb00
Creating a wiki page named "Sidebar" without proper permission raises an exception ( #23700 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15749 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-08-30 19:21:42 +00:00
Jean-Philippe Lang
29ddc82a11
Removes calls to #assert_template and #assigns in functional tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15724 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-21 16:58:59 +00:00
Jean-Philippe Lang
6cc6a918b4
Pass parameters with :params in controller tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15666 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-16 07:43:16 +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
Jean-Philippe Lang
bda78a4679
Adds "New wiki page" link to create a new wiki page ( #5536 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15346 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-04-22 17:47:11 +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
c2fe2d0c06
Fixed that #destroy_version with invalid version destroys wiki page content ( #21155 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14856 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-11-09 17:53:13 +00:00
Jean-Philippe Lang
84ca9ac7fd
Missing fixtures.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14711 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-20 18:04:01 +00:00
Jean-Philippe Lang
7b12145ed9
Raises wiki edits comments limit to 1024 ( #19886 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14622 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-09-21 21:13:06 +00:00
Jean-Philippe Lang
e3618bdbec
Add support for multiple email addresses per user ( #4244 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13886 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-17 14:14:12 +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
2a6692248b
Replaced "can't" with "cannot" in error messages.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13781 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-21 12:39:48 +00:00
Jean-Philippe Lang
5222650d95
Adds a few tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13695 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-03 20:21:03 +00:00
Jean-Philippe Lang
e0a034164f
Move wiki page to other project ( #5450 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13643 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-23 13:36:01 +00:00
Jean-Philippe Lang
f3e573b5f8
Replaced remaining #assert_tag with #assert_select.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13624 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-22 09:38:21 +00:00
Toshi MARUYAMA
f2ddfcda9a
add missing fixtures to test/functional/wiki_controller_test.rb
...
Tests fail randomly.
<pre>
1) Error:
WikiControllerTest#test_show_with_sidebar:
ActionView::Template::Error: undefined method `name' for nil:NilClass
app/helpers/application_helper.rb:797:in `block in parse_redmine_links'
app/helpers/application_helper.rb:757:in `gsub!'
app/helpers/application_helper.rb:757:in `parse_redmine_links'
app/helpers/application_helper.rb:601:in `block (2 levels) in textilizable'
app/helpers/application_helper.rb:600:in `each'
app/helpers/application_helper.rb:600:in `block in textilizable'
app/helpers/application_helper.rb:621:in `parse_non_pre_blocks'
app/helpers/application_helper.rb:599:in `textilizable'
app/views/wiki/_content.html.erb:2:in `_app_views_wiki__content_html_erb___3773333740575742579_33736820'
app/views/wiki/show.html.erb:44:in `_app_views_wiki_show_html_erb__965327089377623997_33504680'
app/controllers/wiki_controller.rb:97:in `show'
test/functional/wiki_controller_test.rb:119:in `test_show_with_sidebar'
</pre>
It can be reproduced by following change.
<pre>
class WikiControllerTest < ActionController::TestCase
fixtures :projects, :users, :roles, :members, :member_roles,
:enabled_modules, :wikis, :wiki_pages, :wiki_contents,
- :wiki_content_versions, :attachments
+ :wiki_content_versions, :attachments,
+ :issues #, :issue_statuses
</pre>
git-svn-id: http://svn.redmine.org/redmine/trunk@13590 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-12 03:44:47 +00:00
Jean-Philippe Lang
2d1866d966
Merged rails-4.1 branch ( #14534 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-22 17:37:16 +00:00
Jean-Philippe Lang
c075626462
Fixed that requesting a specific version of a non-existent wiki page raises an error ( #16255 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@12971 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-03-15 11:41:24 +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
Toshi MARUYAMA
378a3e684f
Rails4: replace deprecated Relation#first with finder options at WikiControllerTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@12635 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-11 09:24:40 +00:00
Toshi MARUYAMA
a313d540a6
code format cleanup WikiControllerTest
...
git-svn-id: http://svn.redmine.org/redmine/trunk@12634 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-11 09:24:24 +00:00
Jean-Philippe Lang
ba083225b7
Return to section anchor after wiki section edit ( #15182 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12239 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-10-26 09:03:08 +00:00
Jean-Philippe Lang
5f747faa58
Fixed that viewing/editing a wiki page without WikiContent raises an error ( #14986 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12220 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-10-13 11:19:47 +00:00
Jean-Philippe Lang
8f00d31ec6
Accommodates fixtures for databases with case sensitive sort.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11260 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-23 18:09:03 +00:00
Jean-Philippe Lang
1cb1bc7c96
Attachment name is added in the generated link.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11192 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-14 22:43:26 +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