From: Toshi MARUYAMA Date: Sat, 19 Mar 2011 12:45:25 +0000 (+0000) Subject: scm: fix git and mecruial repository note in setting. X-Git-Tag: 1.2.0~676 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=08429506c5732dc2c097df05128353da3b4b7f07;p=redmine.git scm: fix git and mecruial repository note in setting. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5167 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb index 234a884b3..fa58f5d55 100644 --- a/app/helpers/repositories_helper.rb +++ b/app/helpers/repositories_helper.rb @@ -213,14 +213,14 @@ module RepositoriesHelper :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)) + :label => 'Commit messages encoding', :required => true)) end def mercurial_field_tags(form, repository) content_tag('p', form.text_field(:url, :label => 'Root directory', :size => 60, :required => true, :disabled => (repository && !repository.root_url.blank?)) + - '
local repository (e.g. /hgrepo, c:\hgrepo)' ) + + '
Local repository (e.g. /hgrepo, c:\hgrepo)' ) + content_tag('p', form.select( :path_encoding, [nil] + Setting::ENCODINGS, :label => 'Path encoding') + @@ -231,7 +231,7 @@ module RepositoriesHelper content_tag('p', form.text_field(:url, :label => 'Path to repository', :size => 60, :required => true, :disabled => (repository && !repository.root_url.blank?)) + - '
a bare and local repository (e.g. /gitrepo, c:\gitrepo)') + + '
Bare and local repository (e.g. /gitrepo, c:\gitrepo)') + content_tag('p', form.select( :path_encoding, [nil] + Setting::ENCODINGS, :label => 'Path encoding') + @@ -246,7 +246,7 @@ module RepositoriesHelper :size => 30, :required => true, :disabled => !repository.new_record?)) + content_tag('p', form.select(:log_encoding, [nil] + Setting::ENCODINGS, - :label => 'Commit messages encoding', :required => true)) + :label => 'Commit messages encoding', :required => true)) end def bazaar_field_tags(form, repository) @@ -254,7 +254,7 @@ module RepositoriesHelper :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)) + :label => 'Commit messages encoding', :required => true)) end def filesystem_field_tags(form, repository)