Commit 65abd8b20ab047016e2fc30e5cd1edf5bf4554ea
1 parent
ed891250
Exists in
master
and in
4 other branches
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,19 +10,17 @@ | ||
10 | Project name is | 10 | Project name is |
11 | .input | 11 | .input |
12 | = f.text_field :name, placeholder: "Example Project", class: "xxlarge" | 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 | %hr | 14 | %hr |
16 | .adv_settings | 15 | .adv_settings |
17 | %h6 Advanced settings: | 16 | %h6 Advanced settings: |
18 | .clearfix | 17 | .clearfix |
19 | = f.label :path do | 18 | = f.label :path do |
20 | - Git Clone | 19 | + Path |
21 | .input | 20 | .input |
22 | .input-prepend | 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 | .clearfix | 24 | .clearfix |
27 | = f.label :code do | 25 | = f.label :code do |
28 | URL | 26 | URL |