Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakuya Noguchi <tak.noguchi.iridge@gmail.com>2017-07-18 19:55:48 +0300
committerTakuya Noguchi <tak.noguchi.iridge@gmail.com>2017-07-20 04:16:55 +0300
commit1ec5136128364f36f88713f7678188b5d478e6c9 (patch)
tree9937f1e4cc391bc55c32d9235fd0b9fe9b157598 /app/views/projects/branches
parent3453bc328465156bf1fdb4c700c7c3b20d0c1967 (diff)
Hide description about protected branches to non-member
Diffstat (limited to 'app/views/projects/branches')
-rw-r--r--app/views/projects/branches/index.html.haml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/projects/branches/index.html.haml b/app/views/projects/branches/index.html.haml
index 8bc1996452b..73583c6bbc2 100644
--- a/app/views/projects/branches/index.html.haml
+++ b/app/views/projects/branches/index.html.haml
@@ -4,9 +4,10 @@
%div{ class: container_class }
.top-area.adjust
- .nav-text
- Protected branches can be managed in
- = link_to 'project settings', project_protected_branches_path(@project)
+ - if can?(current_user, :admin_project, @project)
+ .nav-text
+ Protected branches can be managed in
+ = link_to 'project settings', project_protected_branches_path(@project)
.nav-controls
= form_tag(filter_branches_path, method: :get) do