summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2015-05-08 18:12:07 +0200
committerMarin Jankovski <maxlazio@gmail.com>2015-05-08 18:12:07 +0200
commit15909d6411522ed11813c33e49ce695ac765b851 (patch)
treed2742e0801e60ff7b6ea39f3fb88335fa9ec44e1
parentd9b6b9201e7d4495c28035bf545ee2b85834bd5e (diff)
downloadgitlab-ce-15909d6411522ed11813c33e49ce695ac765b851.tar.gz
Move project visibility from clone bar to repository details block for non empty project.
-rw-r--r--app/views/projects/_aside.html.haml4
-rw-r--r--app/views/shared/_clone_panel.html.haml2
2 files changed, 4 insertions, 2 deletions
diff --git a/app/views/projects/_aside.html.haml b/app/views/projects/_aside.html.haml
index 1865b5be8c6..1241b51f9ac 100644
--- a/app/views/projects/_aside.html.haml
+++ b/app/views/projects/_aside.html.haml
@@ -4,7 +4,9 @@
- unless @project.empty_repo?
.well
- %h4 Repository
+ %h4.visibility-level-label
+ = visibility_level_icon(@project.visibility_level)
+ = "#{visibility_level_label(@project.visibility_level).capitalize} project"
%ul.nav.nav-pills
%li= link_to pluralize(number_with_delimiter(@repository.commit_count), 'commit'), namespace_project_commits_path(@project.namespace, @project, @ref || @repository.root_ref)
%li= link_to pluralize(number_with_delimiter(@repository.branch_names.count), 'branch'), namespace_project_branches_path(@project.namespace, @project)
diff --git a/app/views/shared/_clone_panel.html.haml b/app/views/shared/_clone_panel.html.haml
index 60bb76e898a..3f489a04e71 100644
--- a/app/views/shared/_clone_panel.html.haml
+++ b/app/views/shared/_clone_panel.html.haml
@@ -18,7 +18,7 @@
:"data-container" => "body"}
= gitlab_config.protocol.upcase
= text_field_tag :project_clone, default_url_to_repo(project), class: "js-select-on-focus form-control input-sm", readonly: true
- - if project.kind_of?(Project)
+ - if project.kind_of?(Project) && project.empty_repo?
.input-group-addon
.visibility-level-label.has_tooltip{'data-title' => "#{visibility_level_label(project.visibility_level)} project" }
= visibility_level_icon(project.visibility_level)