diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-31 08:07:51 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-07-31 08:07:51 +0000 |
commit | acc0d8484505ed199fe8b9d2529d8f298d95bb80 (patch) | |
tree | ee82638df3d413eb162394ab278cace2fa52b85d /app/helpers/application_helper.rb | |
parent | 15d00fc3d3cfb941a1904840259b719f8bbf4eeb (diff) | |
download | gitlab-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.rb | 6 |
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 |