Commit 2c32574ac303e180f43cfc2a3d119dd6a7b29b0c
1 parent
efde8653
Exists in
master
and in
4 other branches
Project git clone panel
Showing
2 changed files
with
12 additions
and
3 deletions
Show diff stats
app/assets/stylesheets/sections/projects.scss
| @@ -39,3 +39,14 @@ | @@ -39,3 +39,14 @@ | ||
| 39 | } | 39 | } |
| 40 | } | 40 | } |
| 41 | } | 41 | } |
| 42 | + | ||
| 43 | +.project_clone_panel { | ||
| 44 | + @include border-radius(4px); | ||
| 45 | + @include bg-gray-gradient; | ||
| 46 | + padding: 4px 7px; | ||
| 47 | + border: 1px solid #CCC; | ||
| 48 | + margin-bottom:5px; | ||
| 49 | + input[type=text] { | ||
| 50 | + border: 1px solid #BBB; | ||
| 51 | + } | ||
| 52 | +} |
app/views/projects/show.html.haml
| 1 | = render "project_head" | 1 | = render "project_head" |
| 2 | 2 | ||
| 3 | -.entry | 3 | +.project_clone_panel |
| 4 | .row | 4 | .row |
| 5 | .span7 | 5 | .span7 |
| 6 | .form-horizontal | 6 | .form-horizontal |
| 7 | .input-prepend.project_clone_holder | 7 | .input-prepend.project_clone_holder |
| 8 | - | ||
| 9 | - %span.add-on git clone | ||
| 10 | = link_to "SSH", "#", class: "btn small active", :"data-clone" => @project.ssh_url_to_repo | 8 | = link_to "SSH", "#", class: "btn small active", :"data-clone" => @project.ssh_url_to_repo |
| 11 | = link_to "HTTP", "#", class: "btn small", :"data-clone" => @project.http_url_to_repo | 9 | = link_to "HTTP", "#", class: "btn small", :"data-clone" => @project.http_url_to_repo |
| 12 | = text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span5" | 10 | = text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span5" |