scm: git: add path encoding select box at setting (#5251).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5064 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
084bdd7559
commit
15ebb42579
|
@ -219,10 +219,14 @@ module RepositoriesHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def git_field_tags(form, repository)
|
def git_field_tags(form, repository)
|
||||||
content_tag('p', form.text_field(:url, :label => 'Path to repository',
|
content_tag('p', form.text_field(:url, :label => 'Path to repository',
|
||||||
:size => 60, :required => true,
|
:size => 60, :required => true,
|
||||||
:disabled => (repository && !repository.root_url.blank?)) +
|
:disabled => (repository && !repository.root_url.blank?)) +
|
||||||
'<br />a bare and local repository (e.g. /gitrepo, c:\gitrepo)')
|
'<br />a bare and local repository (e.g. /gitrepo, c:\gitrepo)') +
|
||||||
|
content_tag('p', form.select(
|
||||||
|
:path_encoding, [nil] + Setting::ENCODINGS,
|
||||||
|
:label => 'Path encoding') +
|
||||||
|
'<br />Default: UTF-8')
|
||||||
end
|
end
|
||||||
|
|
||||||
def cvs_field_tags(form, repository)
|
def cvs_field_tags(form, repository)
|
||||||
|
|
Loading…
Reference in New Issue