summaryrefslogtreecommitdiff
path: root/app/views/shared/_visibility_select.html.haml
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2016-11-22 17:16:30 +0000
committerLuke "Jared" Bennett <lbennett@gitlab.com>2016-12-10 17:28:36 +0000
commit2c9bb135057f4fea43aa0be5b94354f288d5070f (patch)
tree99d4659d9b27a849ae692f2d2dd8cd3bf71d1ab8 /app/views/shared/_visibility_select.html.haml
parent26b0fe8d2e16adf4106859ed578dd2352cde412b (diff)
downloadgitlab-ce-24032-changed-visibility-level-to-public-but-project-is-not-public.tar.gz
Grab permissions description from backend Review changes Added unit tests
Diffstat (limited to 'app/views/shared/_visibility_select.html.haml')
-rw-r--r--app/views/shared/_visibility_select.html.haml11
1 files changed, 0 insertions, 11 deletions
diff --git a/app/views/shared/_visibility_select.html.haml b/app/views/shared/_visibility_select.html.haml
deleted file mode 100644
index 42210f565f6..00000000000
--- a/app/views/shared/_visibility_select.html.haml
+++ /dev/null
@@ -1,11 +0,0 @@
-- if can_change_visibility_level?(@project, current_user)
- - levels_options_hash = {}
- - Gitlab::VisibilityLevel.values.each do |level|
- - levels_options_hash[visibility_level_label(level)] = level
- - options = options_for_select(levels_options_hash, selected_level)
- = form.select(model_method, options, {}, class: 'form-control visibility-select')
-- else
- .info.js-locked{ data: { help_block: visibility_level_description(@project.visibility_level, @project)}}
- = visibility_level_icon(@project.visibility_level)
- %strong
- = visibility_level_label(@project.visibility_level)