Commit bf06b3196dfd303665058455529e344d54867e25

Authored by Dmitriy Zaporozhets
1 parent 730e79e7

Make clone widget read-only

app/assets/stylesheets/common.scss
@@ -193,10 +193,6 @@ input[type=text] { @@ -193,10 +193,6 @@ input[type=text] {
193 } 193 }
194 } 194 }
195 195
196 -input.git_clone_url {  
197 - width: 325px;  
198 -}  
199 -  
200 .merge-request-form-holder { 196 .merge-request-form-holder {
201 select { 197 select {
202 width: 300px; 198 width: 300px;
app/assets/stylesheets/sections/projects.scss
@@ -80,6 +80,7 @@ @@ -80,6 +80,7 @@
80 border: 1px solid #BBB; 80 border: 1px solid #BBB;
81 box-shadow: none; 81 box-shadow: none;
82 margin-left: -1px; 82 margin-left: -1px;
  83 + background: #FFF;
83 } 84 }
84 } 85 }
85 86
app/views/shared/_clone_panel.html.haml
1 .input-prepend.project_clone_holder 1 .input-prepend.project_clone_holder
2 %button{class: "btn active", :"data-clone" => @project.ssh_url_to_repo} SSH 2 %button{class: "btn active", :"data-clone" => @project.ssh_url_to_repo} SSH
3 %button{class: "btn", :"data-clone" => @project.http_url_to_repo}= Gitlab.config.gitlab.protocol.upcase 3 %button{class: "btn", :"data-clone" => @project.http_url_to_repo}= Gitlab.config.gitlab.protocol.upcase
4 -  
5 - = text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select input-xxlarge" 4 + = text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select input-xxlarge", readonly: true