diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-25 16:48:03 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-25 16:48:03 +0000 |
commit | a7ed2956fb441cdbc678561f92222be49ba58945 (patch) | |
tree | 2c6674a4f70f042ec106c029be62c172d6f3b116 /app | |
parent | 18e8a45752073f90c808621ac09db47f6359cfd0 (diff) | |
download | redmine-a7ed2956fb441cdbc678561f92222be49ba58945.tar.gz redmine-a7ed2956fb441cdbc678561f92222be49ba58945.zip |
cleanup: rubocop: fix Layout/IndentFirstArgument in app/helpers/repositories_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19300 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/repositories_helper.rb | 110 |
1 files changed, 63 insertions, 47 deletions
diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb index 3eee0d34f..f1b1404aa 100644 --- a/app/helpers/repositories_helper.rb +++ b/app/helpers/repositories_helper.rb @@ -159,69 +159,85 @@ module RepositoriesHelper :disabled => !repository.safe_attribute?('url')) + scm_path_info_tag(repository)) + content_tag('p', form.text_field(:login, :size => 30)) + - content_tag('p', form.password_field( - :password, :size => 30, :name => 'ignore', - :value => ((repository.new_record? || repository.password.blank?) ? '' : ('x'*15)), - :onfocus => "this.value=''; this.name='repository[password]';", - :onchange => "this.name='repository[password]';")) + content_tag( + 'p', + form.password_field( + :password, :size => 30, :name => 'ignore', + :value => ((repository.new_record? || repository.password.blank?) ? '' : ('x'*15)), + :onfocus => "this.value=''; this.name='repository[password]';", + :onchange => "this.name='repository[password]';") + ) end def mercurial_field_tags(form, repository) - content_tag('p', form.text_field( - :url, :label => l(:field_path_to_repository), - :size => 60, :required => true, - :disabled => !repository.safe_attribute?('url') - ) + - scm_path_info_tag(repository)) + - scm_path_encoding_tag(form, repository) + content_tag( + 'p', + form.text_field( + :url, :label => l(:field_path_to_repository), + :size => 60, :required => true, + :disabled => !repository.safe_attribute?('url') + ) + scm_path_info_tag(repository) + ) + scm_path_encoding_tag(form, repository) end def git_field_tags(form, repository) - content_tag('p', form.text_field( - :url, :label => l(:field_path_to_repository), - :size => 60, :required => true, - :disabled => !repository.safe_attribute?('url') - ) + - scm_path_info_tag(repository)) + + content_tag( + 'p', + form.text_field( + :url, :label => l(:field_path_to_repository), + :size => 60, :required => true, + :disabled => !repository.safe_attribute?('url') + ) + scm_path_info_tag(repository)) + scm_path_encoding_tag(form, repository) + - content_tag('p', form.check_box( - :report_last_commit, - :label => l(:label_git_report_last_commit) - )) + content_tag('p', + form.check_box( + :report_last_commit, + :label => l(:label_git_report_last_commit) + )) end def cvs_field_tags(form, repository) - content_tag('p', form.text_field( - :root_url, - :label => l(:field_cvsroot), - :size => 60, :required => true, - :disabled => !repository.safe_attribute?('root_url')) + - scm_path_info_tag(repository)) + - content_tag('p', form.text_field( - :url, - :label => l(:field_cvs_module), - :size => 30, :required => true, - :disabled => !repository.safe_attribute?('url'))) + - scm_log_encoding_tag(form, repository) + - scm_path_encoding_tag(form, repository) + content_tag( + 'p', + form.text_field( + :root_url, + :label => l(:field_cvsroot), + :size => 60, :required => true, + :disabled => !repository.safe_attribute?('root_url') + ) + scm_path_info_tag(repository) + ) + + content_tag( + 'p', + form.text_field( + :url, + :label => l(:field_cvs_module), + :size => 30, :required => true, + :disabled => !repository.safe_attribute?('url') + ) + ) + scm_log_encoding_tag(form, repository) + + scm_path_encoding_tag(form, repository) end def bazaar_field_tags(form, repository) - content_tag('p', form.text_field( - :url, :label => l(:field_path_to_repository), - :size => 60, :required => true, - :disabled => !repository.safe_attribute?('url')) + - scm_path_info_tag(repository)) + - scm_log_encoding_tag(form, repository) + content_tag( + 'p', + form.text_field( + :url, :label => l(:field_path_to_repository), + :size => 60, :required => true, + :disabled => !repository.safe_attribute?('url') + ) + scm_path_info_tag(repository) + ) + scm_log_encoding_tag(form, repository) end def filesystem_field_tags(form, repository) - content_tag('p', form.text_field( - :url, :label => l(:field_root_directory), - :size => 60, :required => true, - :disabled => !repository.safe_attribute?('url')) + - scm_path_info_tag(repository)) + - scm_path_encoding_tag(form, repository) + content_tag( + 'p', + form.text_field( + :url, :label => l(:field_root_directory), + :size => 60, :required => true, + :disabled => !repository.safe_attribute?('url') + ) + scm_path_info_tag(repository) + ) + scm_path_encoding_tag(form, repository) end def scm_path_info_tag(repository) |