summaryrefslogtreecommitdiff
path: root/app/views/projects/_visibility_select.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/_visibility_select.html.haml')
-rw-r--r--app/views/projects/_visibility_select.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/projects/_visibility_select.html.haml b/app/views/projects/_visibility_select.html.haml
new file mode 100644
index 00000000000..65fc0a36ca9
--- /dev/null
+++ b/app/views/projects/_visibility_select.html.haml
@@ -0,0 +1,7 @@
+- if can_change_visibility_level?(@project, current_user)
+ = form.select(model_method, visibility_select_options(@project, selected_level), {}, 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)