Commit 9ef5573c82acb0dc0d9068df08f469926a0a19c3
1 parent
b8f965a6
Exists in
master
and in
4 other branches
Show project access level right to clone panel
Showing
4 changed files
with
13 additions
and
22 deletions
Show diff stats
app/assets/stylesheets/sections/projects.scss
app/views/projects/_clone_panel.html.haml
| ... | ... | @@ -6,12 +6,12 @@ |
| 6 | 6 | .pull-right |
| 7 | 7 | - unless @project.empty_repo? |
| 8 | 8 | - if can? current_user, :download_code, @project |
| 9 | - = link_to archive_project_repository_path(@project), class: "btn-small btn grouped" do | |
| 9 | + = link_to archive_project_repository_path(@project), class: "btn grouped" do | |
| 10 | 10 | %i.icon-download-alt |
| 11 | 11 | Download |
| 12 | 12 | - if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project) |
| 13 | - = link_to new_project_merge_request_path(@project), title: "New Merge Request", class: "btn-small btn grouped" do | |
| 13 | + = link_to new_project_merge_request_path(@project), title: "New Merge Request", class: "btn grouped" do | |
| 14 | 14 | Merge Request |
| 15 | 15 | - if @project.issues_enabled && can?(current_user, :write_issue, @project) |
| 16 | - = link_to url_for_new_issue, title: "New Issue", class: "btn-small btn grouped" do | |
| 16 | + = link_to url_for_new_issue, title: "New Issue", class: "btn grouped" do | |
| 17 | 17 | Issue | ... | ... |
app/views/projects/show.html.haml
| ... | ... | @@ -15,16 +15,6 @@ |
| 15 | 15 | |
| 16 | 16 | %hr |
| 17 | 17 | %p |
| 18 | - Access level: | |
| 19 | - - if @project.public | |
| 20 | - %span.cblue | |
| 21 | - %i.icon-share | |
| 22 | - Public | |
| 23 | - - else | |
| 24 | - %span.cgreen | |
| 25 | - %i.icon-lock | |
| 26 | - Private | |
| 27 | - | |
| 28 | 18 | %p Repo Size: #{@project.repository.size} MB |
| 29 | 19 | %p Created at: #{@project.created_at.stamp('Aug 22, 2013')} |
| 30 | 20 | %p Owner: #{link_to @project.owner_name, @project.owner} | ... | ... |
app/views/shared/_clone_panel.html.haml
| 1 | -.input-prepend.project_clone_holder | |
| 1 | +.input-prepend.input-append.project_clone_holder | |
| 2 | 2 | %button{class: "btn active", :"data-clone" => @project.ssh_url_to_repo} SSH |
| 3 | 3 | %button{class: "btn", :"data-clone" => @project.http_url_to_repo}= Gitlab.config.gitlab.protocol.upcase |
| 4 | 4 | = text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select input-xxlarge", readonly: true |
| 5 | + %span.add-on | |
| 6 | + - if @project.public | |
| 7 | + .cblue | |
| 8 | + %i.icon-share | |
| 9 | + public | |
| 10 | + - else | |
| 11 | + .cgreen | |
| 12 | + %i.icon-lock | |
| 13 | + private | ... | ... |