summaryrefslogtreecommitdiff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-07-31 08:07:51 +0000
committerPhil Hughes <me@iamphill.com>2017-07-31 08:07:51 +0000
commitacc0d8484505ed199fe8b9d2529d8f298d95bb80 (patch)
treeee82638df3d413eb162394ab278cace2fa52b85d /app/helpers/application_helper.rb
parent15d00fc3d3cfb941a1904840259b719f8bbf4eeb (diff)
downloadgitlab-ce-acc0d8484505ed199fe8b9d2529d8f298d95bb80.tar.gz
Moves the Performance Bar to the top instead of being at the bottom
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 1c165700b19..14dc9bd9d62 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -264,7 +264,11 @@ module ApplicationHelper
end
def page_class
- "issue-boards-page" if current_controller?(:boards)
+ class_names = []
+ class_names << 'issue-boards-page' if current_controller?(:boards)
+ class_names << 'with-performance-bar' if performance_bar_enabled?
+
+ class_names
end
# Returns active css class when condition returns true