scm: code clean up RepositoriesHelper.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5388 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bf68788867
commit
f690341d9e
|
@ -247,22 +247,22 @@ module RepositoriesHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def cvs_field_tags(form, repository)
|
def cvs_field_tags(form, repository)
|
||||||
content_tag('p', form.text_field(:root_url,
|
content_tag('p', form.text_field(:root_url,
|
||||||
:label => 'CVSROOT', :size => 60, :required => true,
|
:label => 'CVSROOT', :size => 60, :required => true,
|
||||||
:disabled => !repository.new_record?)) +
|
:disabled => !repository.new_record?)) +
|
||||||
content_tag('p', form.text_field(:url, :label => 'Module',
|
content_tag('p', form.text_field(:url, :label => 'Module',
|
||||||
:size => 30, :required => true,
|
:size => 30, :required => true,
|
||||||
:disabled => !repository.new_record?)) +
|
:disabled => !repository.new_record?)) +
|
||||||
content_tag('p', form.select(:log_encoding, [nil] + Setting::ENCODINGS,
|
content_tag('p', form.select(:log_encoding, [nil] + Setting::ENCODINGS,
|
||||||
:label => 'Commit messages encoding', :required => true))
|
:label => 'Commit messages encoding', :required => true))
|
||||||
end
|
end
|
||||||
|
|
||||||
def bazaar_field_tags(form, repository)
|
def bazaar_field_tags(form, repository)
|
||||||
content_tag('p', form.text_field(:url, :label => 'Root directory',
|
content_tag('p', form.text_field(:url, :label => 'Root directory',
|
||||||
:size => 60, :required => true,
|
:size => 60, :required => true,
|
||||||
:disabled => (repository && !repository.new_record?))) +
|
:disabled => (repository && !repository.new_record?))) +
|
||||||
content_tag('p', form.select(:log_encoding, [nil] + Setting::ENCODINGS,
|
content_tag('p', form.select(:log_encoding, [nil] + Setting::ENCODINGS,
|
||||||
:label => 'Commit messages encoding', :required => true))
|
:label => 'Commit messages encoding', :required => true))
|
||||||
end
|
end
|
||||||
|
|
||||||
def filesystem_field_tags(form, repository)
|
def filesystem_field_tags(form, repository)
|
||||||
|
|
Loading…
Reference in New Issue