summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRobert Marcano <robert@marcanoonline.com>2016-09-25 01:14:47 -0400
committerRobert Marcano <robert@marcanoonline.com>2016-09-26 09:04:15 -0400
commit55be351f81b771209982e4bcffe93939b14dfe24 (patch)
tree008a31b7c71b85280e2b6522791a5970ebba3908 /app
parentf1bfb872877df7baf36d2de1ad5dfdb4c8604c9b (diff)
downloadgitlab-ce-55be351f81b771209982e4bcffe93939b14dfe24.tar.gz
Fix "Create project" button layout with restricted visibility
When the administrator restrict visibility options the information message break the buttons layout. Change the message style.
Diffstat (limited to 'app')
-rw-r--r--app/views/shared/_visibility_level.html.haml2
-rw-r--r--app/views/shared/_visibility_radios.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/shared/_visibility_level.html.haml b/app/views/shared/_visibility_level.html.haml
index add4536a0a2..b11257ee0e6 100644
--- a/app/views/shared/_visibility_level.html.haml
+++ b/app/views/shared/_visibility_level.html.haml
@@ -6,7 +6,7 @@
- if can_change_visibility_level
= render('shared/visibility_radios', model_method: :visibility_level, form: f, selected_level: visibility_level, form_model: form_model)
- else
- .col-sm-10
+ %div
%span.info
= visibility_level_icon(visibility_level)
%strong
diff --git a/app/views/shared/_visibility_radios.html.haml b/app/views/shared/_visibility_radios.html.haml
index ebe2eb0433d..182c4eebd50 100644
--- a/app/views/shared/_visibility_radios.html.haml
+++ b/app/views/shared/_visibility_radios.html.haml
@@ -10,6 +10,6 @@
.option-descr
= visibility_level_description(level, form_model)
- unless restricted_visibility_levels.empty?
- .col-sm-10
+ %div
%span.info
Some visibility level settings have been restricted by the administrator.