scm: code clean up repositories_helper.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4942 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9937ac677f
commit
61667a2171
|
@ -175,7 +175,8 @@ module RepositoriesHelper
|
|||
end
|
||||
|
||||
def subversion_field_tags(form, repository)
|
||||
content_tag('p', form.text_field(:url, :size => 60, :required => true, :disabled => (repository && !repository.root_url.blank?)) +
|
||||
content_tag('p', form.text_field(:url, :size => 60, :required => true,
|
||||
:disabled => (repository && !repository.root_url.blank?)) +
|
||||
'<br />(file:///, http://, https://, svn://, svn+[tunnelscheme]://)') +
|
||||
content_tag('p', form.text_field(:login, :size => 30)) +
|
||||
content_tag('p', form.password_field(:password, :size => 30, :name => 'ignore',
|
||||
|
@ -185,11 +186,15 @@ module RepositoriesHelper
|
|||
end
|
||||
|
||||
def darcs_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.text_field(:url, :label => 'Root directory',
|
||||
:size => 60, :required => true,
|
||||
:disabled => (repository && !repository.new_record?)))
|
||||
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?)))
|
||||
content_tag('p', form.text_field(:url, :label => 'Root directory',
|
||||
:size => 60, :required => true,
|
||||
:disabled => (repository && !repository.root_url.blank?)))
|
||||
end
|
||||
|
||||
def git_field_tags(form, repository)
|
||||
|
@ -199,15 +204,23 @@ 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.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?))
|
||||
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.text_field(:url, :label => 'Root directory',
|
||||
:size => 60, :required => true,
|
||||
:disabled => (repository && !repository.new_record?)))
|
||||
end
|
||||
|
||||
def filesystem_field_tags(form, repository)
|
||||
content_tag('p', form.text_field(:url, :label => 'Root directory', :size => 60, :required => true, :disabled => (repository && !repository.root_url.blank?)))
|
||||
content_tag('p', form.text_field(:url, :label => 'Root directory',
|
||||
:size => 60, :required => true,
|
||||
:disabled => (repository && !repository.root_url.blank?)))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue