Commit a022fd41 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Restyle clone panel on project show page

parent 9ef5573c
...@@ -171,3 +171,8 @@ ...@@ -171,3 +171,8 @@
margin: 3px 3px 25px 3px; margin: 3px 3px 25px 3px;
} }
} }
.light-well {
background: #f9f9f9;
padding: 15px;
}
...@@ -74,3 +74,9 @@ fieldset legend { font-size: 17px; } ...@@ -74,3 +74,9 @@ fieldset legend { font-size: 17px; }
.tab-content { .tab-content {
overflow: visible; overflow: visible;
} }
@media (max-width: 1200px) {
.only-wide {
display: none;
}
}
.project_clone_panel .project_clone_panel
.row .row
.span7 .span8
.form-horizontal= render "shared/clone_panel" .form-horizontal= render "shared/clone_panel"
.span4.pull-right .span3.pull-right
.pull-right .pull-right
- unless @project.empty_repo? - unless @project.empty_repo?
- if can? current_user, :download_code, @project - if can? current_user, :download_code, @project
= link_to archive_project_repository_path(@project), class: "btn grouped" do = link_to archive_project_repository_path(@project), class: "btn grouped" do
%i.icon-download-alt %i.icon-download-alt
Download Download
= link_to tags_project_repository_path(@project), class: "btn grouped only-wide", title: 'Git Tags' do
%i.icon-tags
.dropdown.pull-right
%a.dropdown-toggle.btn{href: '#', "data-toggle" => "dropdown"}
%i.icon-plus
Add new
%b.caret
%ul.dropdown-menu
- if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project) - if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
= link_to new_project_merge_request_path(@project), title: "New Merge Request", class: "btn grouped" do %li
= link_to new_project_merge_request_path(@project), title: "New Merge Request" do
Merge Request Merge Request
- if @project.issues_enabled && can?(current_user, :write_issue, @project) - if @project.issues_enabled && can?(current_user, :write_issue, @project)
= link_to url_for_new_issue, title: "New Issue", class: "btn grouped" do %li
= link_to url_for_new_issue, title: "New Issue" do
Issue Issue
- if @project.snippets_enabled && can?(current_user, :write_snippet, @project)
%li
= link_to new_project_snippet_path(@project), title: "New Snippet" do
Snippet
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
.content_list= render @events .content_list= render @events
.loading.hide .loading.hide
.span3 .span3
.ui-box.white .light-well
.padded
%h3.page_title %h3.page_title
= @project.name = @project.name
- if @project.description.present? - if @project.description.present?
......
.input-prepend.input-append.project_clone_holder .input-prepend.input-append.project_clone_holder
%button{class: "btn active", :"data-clone" => @project.ssh_url_to_repo} SSH %button{class: "btn active", :"data-clone" => @project.ssh_url_to_repo} SSH
%button{class: "btn", :"data-clone" => @project.http_url_to_repo}= Gitlab.config.gitlab.protocol.upcase %button{class: "btn", :"data-clone" => @project.http_url_to_repo}= Gitlab.config.gitlab.protocol.upcase
= text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select input-xxlarge", readonly: true = text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span7", readonly: true
%span.add-on %span.add-on
- if @project.public - if @project.public
.cblue .cblue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment