@@ -152,8 +152,7 module RepositoriesHelper | |||||
152 | def subversion_field_tags(form, repository) |
|
152 | def subversion_field_tags(form, repository) | |
153 | content_tag('p', form.text_field(:url, :size => 60, :required => true, |
|
153 | content_tag('p', form.text_field(:url, :size => 60, :required => true, | |
154 | :disabled => !repository.safe_attribute?('url')) + |
|
154 | :disabled => !repository.safe_attribute?('url')) + | |
155 | '<br />'.html_safe + |
|
155 | content_tag('em', '(file:///, http://, https://, svn://, svn+[tunnelscheme]://)', :class => 'info')) + | |
156 | '(file:///, http://, https://, svn://, svn+[tunnelscheme]://)') + |
|
|||
157 | content_tag('p', form.text_field(:login, :size => 30)) + |
|
156 | content_tag('p', form.text_field(:login, :size => 30)) + | |
158 | content_tag('p', form.password_field( |
|
157 | content_tag('p', form.password_field( | |
159 | :password, :size => 30, :name => 'ignore', |
|
158 | :password, :size => 30, :name => 'ignore', | |
@@ -178,12 +177,12 module RepositoriesHelper | |||||
178 | :size => 60, :required => true, |
|
177 | :size => 60, :required => true, | |
179 | :disabled => !repository.safe_attribute?('url') |
|
178 | :disabled => !repository.safe_attribute?('url') | |
180 | ) + |
|
179 | ) + | |
181 |
|
|
180 | content_tag('em', l(:text_mercurial_repository_note), :class => 'info')) + | |
182 | content_tag('p', form.select( |
|
181 | content_tag('p', form.select( | |
183 | :path_encoding, [nil] + Setting::ENCODINGS, |
|
182 | :path_encoding, [nil] + Setting::ENCODINGS, | |
184 | :label => l(:field_scm_path_encoding) |
|
183 | :label => l(:field_scm_path_encoding) | |
185 | ) + |
|
184 | ) + | |
186 |
|
|
185 | content_tag('em', l(:text_scm_path_encoding_note), :class => 'info')) | |
187 | end |
|
186 | end | |
188 |
|
187 | |||
189 | def git_field_tags(form, repository) |
|
188 | def git_field_tags(form, repository) | |
@@ -192,13 +191,12 module RepositoriesHelper | |||||
192 | :size => 60, :required => true, |
|
191 | :size => 60, :required => true, | |
193 | :disabled => !repository.safe_attribute?('url') |
|
192 | :disabled => !repository.safe_attribute?('url') | |
194 | ) + |
|
193 | ) + | |
195 | '<br />'.html_safe + |
|
194 | content_tag('em', l(:text_git_repository_note), :class => 'info')) + | |
196 | l(:text_git_repository_note)) + |
|
|||
197 | content_tag('p', form.select( |
|
195 | content_tag('p', form.select( | |
198 | :path_encoding, [nil] + Setting::ENCODINGS, |
|
196 | :path_encoding, [nil] + Setting::ENCODINGS, | |
199 | :label => l(:field_scm_path_encoding) |
|
197 | :label => l(:field_scm_path_encoding) | |
200 | ) + |
|
198 | ) + | |
201 |
|
|
199 | content_tag('em', l(:text_scm_path_encoding_note), :class => 'info')) + | |
202 | content_tag('p', form.check_box( |
|
200 | content_tag('p', form.check_box( | |
203 | :extra_report_last_commit, |
|
201 | :extra_report_last_commit, | |
204 | :label => l(:label_git_report_last_commit) |
|
202 | :label => l(:label_git_report_last_commit) | |
@@ -223,7 +221,7 module RepositoriesHelper | |||||
223 | :path_encoding, [nil] + Setting::ENCODINGS, |
|
221 | :path_encoding, [nil] + Setting::ENCODINGS, | |
224 | :label => l(:field_scm_path_encoding) |
|
222 | :label => l(:field_scm_path_encoding) | |
225 | ) + |
|
223 | ) + | |
226 |
|
|
224 | content_tag('em', l(:text_scm_path_encoding_note), :class => 'info')) | |
227 | end |
|
225 | end | |
228 |
|
226 | |||
229 | def bazaar_field_tags(form, repository) |
|
227 | def bazaar_field_tags(form, repository) | |
@@ -245,7 +243,7 module RepositoriesHelper | |||||
245 | :path_encoding, [nil] + Setting::ENCODINGS, |
|
243 | :path_encoding, [nil] + Setting::ENCODINGS, | |
246 | :label => l(:field_scm_path_encoding) |
|
244 | :label => l(:field_scm_path_encoding) | |
247 | ) + |
|
245 | ) + | |
248 |
|
|
246 | content_tag('em', l(:text_scm_path_encoding_note), :class => 'info')) | |
249 | end |
|
247 | end | |
250 |
|
248 | |||
251 | def index_commits(commits, heads) |
|
249 | def index_commits(commits, heads) |
General Comments 0
You need to be logged in to leave comments.
Login now