diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-11 04:18:13 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-11 04:18:13 +0000 |
commit | f690341d9ef11346222eb05f8e60b8acd674d4a1 (patch) | |
tree | 75c21b53c7b80204a16ad8f5bfe4da71dd990647 /app/helpers/repositories_helper.rb | |
parent | bf687888671995a95486b292923b4e8eead35fdf (diff) | |
download | redmine-f690341d9ef11346222eb05f8e60b8acd674d4a1.tar.gz redmine-f690341d9ef11346222eb05f8e60b8acd674d4a1.zip |
scm: code clean up RepositoriesHelper.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5388 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/repositories_helper.rb')
-rw-r--r-- | app/helpers/repositories_helper.rb | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb index 80887a937..36cd90fba 100644 --- a/app/helpers/repositories_helper.rb +++ b/app/helpers/repositories_helper.rb @@ -247,22 +247,22 @@ module RepositoriesHelper end def cvs_field_tags(form, repository) - content_tag('p', form.text_field(:root_url, - :label => 'CVSROOT', :size => 60, :required => true, - :disabled => !repository.new_record?)) + - content_tag('p', form.text_field(:url, :label => 'Module', - :size => 30, :required => true, - :disabled => !repository.new_record?)) + - content_tag('p', form.select(:log_encoding, [nil] + Setting::ENCODINGS, - :label => 'Commit messages encoding', :required => true)) + content_tag('p', form.text_field(:root_url, + :label => 'CVSROOT', :size => 60, :required => true, + :disabled => !repository.new_record?)) + + content_tag('p', form.text_field(:url, :label => 'Module', + :size => 30, :required => true, + :disabled => !repository.new_record?)) + + content_tag('p', form.select(:log_encoding, [nil] + Setting::ENCODINGS, + :label => 'Commit messages encoding', :required => true)) end def bazaar_field_tags(form, repository) - content_tag('p', form.text_field(:url, :label => 'Root directory', - :size => 60, :required => true, - :disabled => (repository && !repository.new_record?))) + - content_tag('p', form.select(:log_encoding, [nil] + Setting::ENCODINGS, - :label => 'Commit messages encoding', :required => true)) + content_tag('p', form.text_field(:url, :label => 'Root directory', + :size => 60, :required => true, + :disabled => (repository && !repository.new_record?))) + + content_tag('p', form.select(:log_encoding, [nil] + Setting::ENCODINGS, + :label => 'Commit messages encoding', :required => true)) end def filesystem_field_tags(form, repository) |