##// END OF EJS Templates
scm: mercurial: change "url" human attribute name from "Root directory" to "Path to repository"....
Toshi MARUYAMA -
r5408:82d5de4b4e3e
parent child
Show More
@@ -207,10 +207,12 module RepositoriesHelper
207 end
207 end
208
208
209 def mercurial_field_tags(form, repository)
209 def mercurial_field_tags(form, repository)
210 content_tag('p', form.text_field(:url, :label => 'Root directory',
210 content_tag('p', form.text_field(
211 :url, :label => 'Path to repository',
211 :size => 60, :required => true,
212 :size => 60, :required => true,
212 :disabled => (repository && !repository.root_url.blank?)) +
213 :disabled => (repository && !repository.root_url.blank?)
213 '<br />Local repository (e.g. /hgrepo, c:\hgrepo)' ) +
214 ) +
215 '<br />Local repository (e.g. /hgrepo, c:\hgrepo)' ) +
214 content_tag('p', form.select(
216 content_tag('p', form.select(
215 :path_encoding, [nil] + Setting::ENCODINGS,
217 :path_encoding, [nil] + Setting::ENCODINGS,
216 :label => l("field_scm_path_encoding")
218 :label => l("field_scm_path_encoding")
@@ -27,7 +27,7 class Repository::Mercurial < Repository
27 FETCH_AT_ONCE = 100 # number of changesets to fetch at once
27 FETCH_AT_ONCE = 100 # number of changesets to fetch at once
28
28
29 ATTRIBUTE_KEY_NAMES = {
29 ATTRIBUTE_KEY_NAMES = {
30 "url" => "Root directory",
30 "url" => "Path to repository",
31 }
31 }
32 def self.human_attribute_name(attribute_key_name)
32 def self.human_attribute_name(attribute_key_name)
33 ATTRIBUTE_KEY_NAMES[attribute_key_name] || super
33 ATTRIBUTE_KEY_NAMES[attribute_key_name] || super
General Comments 0
You need to be logged in to leave comments. Login now