Commit 65abd8b20ab047016e2fc30e5cd1edf5bf4554ea

Authored by randx
1 parent ed891250

Freeze project path in admin area

Showing 1 changed file with 3 additions and 5 deletions   Show diff stats
app/views/admin/projects/_form.html.haml
... ... @@ -10,19 +10,17 @@
10 10 Project name is
11 11 .input
12 12 = f.text_field :name, placeholder: "Example Project", class: "xxlarge"
13   - = f.submit project.new_record? ? 'Create project' : 'Save Project', class: "btn primary"
14 13  
15 14 %hr
16 15 .adv_settings
17 16 %h6 Advanced settings:
18 17 .clearfix
19 18 = f.label :path do
20   - Git Clone
  19 + Path
21 20 .input
22 21 .input-prepend
23   - %span.add-on= Gitlab.config.ssh_path
24   - = f.text_field :path, placeholder: "example_project", disabled: !!project.id
25   - %span.add-on= ".git"
  22 + %strong
  23 + = text_field_tag :ppath, @admin_project.path_to_repo, class: "xlarge", disabled: true
26 24 .clearfix
27 25 = f.label :code do
28 26 URL
... ...