diff options
author | Vinnie Okada <vokada@mrvinn.com> | 2015-04-25 23:01:52 -0600 |
---|---|---|
committer | Vinnie Okada <vokada@mrvinn.com> | 2015-04-26 07:48:19 -0600 |
commit | bd557e4b64a733f4be64b8cf36b8a551d8e8bab7 (patch) | |
tree | bbcfbe5bd73b157755254f9270c0601be4ab74f0 /app/views/shared/_visibility_radios.html.haml | |
parent | 439b9f50af3168d33169a4cd25b59e45ea46dc62 (diff) | |
download | gitlab-ce-bd557e4b64a733f4be64b8cf36b8a551d8e8bab7.tar.gz |
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.haml | 14 |
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. |