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:
authorVinnie Okada <vokada@mrvinn.com>2015-04-26 08:01:52 +0300
committerVinnie Okada <vokada@mrvinn.com>2015-04-26 16:48:19 +0300
commitbd557e4b64a733f4be64b8cf36b8a551d8e8bab7 (patch)
treebbcfbe5bd73b157755254f9270c0601be4ab74f0 /app/views/shared/_visibility_radios.html.haml
parent439b9f50af3168d33169a4cd25b59e45ea46dc62 (diff)
Add new admin settings
Add new global application settings for default project and snippet visibility levels.
Diffstat (limited to 'app/views/shared/_visibility_radios.html.haml')
-rw-r--r--app/views/shared/_visibility_radios.html.haml14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/shared/_visibility_radios.html.haml b/app/views/shared/_visibility_radios.html.haml
new file mode 100644
index 00000000000..b07c4d20f12
--- /dev/null
+++ b/app/views/shared/_visibility_radios.html.haml
@@ -0,0 +1,14 @@
+- Gitlab::VisibilityLevel.values.each do |level|
+ .radio
+ - restricted = restricted_visibility_levels.include?(level)
+ = label model_method, level do
+ = form.radio_button model_method, level, checked: (selected_level == level), disabled: restricted
+ = visibility_level_icon(level)
+ .option-title
+ = visibility_level_label(level)
+ .option-descr
+ = visibility_level_description(level, form_model)
+- unless restricted_visibility_levels.empty?
+ .col-sm-10
+ %span.info
+ Some visibility level settings have been restricted by the administrator.