Project

General

Profile

Defect #2664 » 20110207-git-cvs-fs.diff

Toshi MARUYAMA, 2011-02-07 10:39

View differences:

app/helpers/repositories_helper.rb
182 182
  end
183 183

  
184 184
  def git_field_tags(form, repository)
185
      content_tag('p', form.text_field(:url, :label => 'Path to .git directory', :size => 60, :required => true, :disabled => (repository && !repository.root_url.blank?)))
185
      content_tag('p', form.text_field(:url, :label => 'Path to .git directory', :size => 60, :required => true, :disabled => (repository && !repository.root_url.blank?))) +
186
      content_tag('p', form.select(:path_encoding, [nil] + Setting::ENCODINGS,
187
                                 :label => 'Path encoding'))
186 188
  end
187 189

  
188 190
  def cvs_field_tags(form, repository)
189 191
      content_tag('p', form.text_field(:root_url, :label => 'CVSROOT', :size => 60, :required => true, :disabled => !repository.new_record?)) +
190
      content_tag('p', form.text_field(:url, :label => 'Module', :size => 30, :required => true, :disabled => !repository.new_record?))
192
      content_tag('p', form.text_field(:url, :label => 'Module', :size => 30, :required => true, :disabled => !repository.new_record?)) +
193
      content_tag('p', form.select(:path_encoding, [nil] + Setting::ENCODINGS,
194
                                 :label => 'Path encoding'))
191 195
  end
192 196

  
193 197
  def bazaar_field_tags(form, repository)
......
195 199
  end
196 200
  
197 201
  def filesystem_field_tags(form, repository)
198
    content_tag('p', form.text_field(:url, :label => 'Root directory', :size => 60, :required => true, :disabled => (repository && !repository.root_url.blank?)))
202
    content_tag('p', form.text_field(:url, :label => 'Root directory', :size => 60, :required => true, :disabled => (repository && !repository.root_url.blank?))) +
203
    content_tag('p', form.select(:path_encoding, [nil] + Setting::ENCODINGS,
204
                                 :label => 'Path encoding'))
199 205
  end
200 206
end
(4-4/8)