Feature #6515 » mercurial_helper_hgrc_support.diff
app/helpers/repositories_helper.rb | ||
---|---|---|
170 | 170 |
end |
171 | 171 |
|
172 | 172 |
def mercurial_field_tags(form, repository) |
173 |
content_tag('p', form.text_field(:url, :label => 'Root directory', :size => 60, :required => true, :disabled => (repository && !repository.root_url.blank?))) |
|
173 |
repository.load_hgrc |
|
174 |
content_tag('p', form.text_field(:url, :label => 'Root directory', :size => 60, :required => true, :disabled => (repository && !repository.root_url.blank?))) + |
|
175 |
content_tag('p', form.text_field( |
|
176 |
:hgrc_web_contact, |
|
177 |
:label => 'Contacts')) + |
|
178 |
content_tag('p', form.text_field( |
|
179 |
:hgrc_web_description, |
|
180 |
:label => 'Description')) + |
|
181 |
content_tag('p', form.text_field( |
|
182 |
:hgrc_web_style, |
|
183 |
:label => 'Style')) + |
|
184 |
content_tag('p', form.check_box( |
|
185 |
:hgrc_hooks_issues_update, |
|
186 |
:label => 'Update issues on push')) |
|
174 | 187 |
end |
175 | 188 | |
176 | 189 |
def git_field_tags(form, repository) |