summaryrefslogtreecommitdiff
path: root/app/helpers/preferences_helper.rb
diff options
context:
space:
mode:
authorPeter Göbel <peter.goebel@debd.de>2015-10-05 17:22:47 +0200
committerPeter Göbel <peter.goebel@debd.de>2015-10-05 17:22:47 +0200
commite2c5d08e7e4482bd13b8e2e4f77db73dc757d6a7 (patch)
tree3e2ed73cc5a01b257e4f32f6f35a2bb778e2176e /app/helpers/preferences_helper.rb
parent144eef38507a5b3e21f8aa5e38247bdfd73fba23 (diff)
downloadgitlab-ce-e2c5d08e7e4482bd13b8e2e4f77db73dc757d6a7.tar.gz
added user preference to change layout width
Diffstat (limited to 'app/helpers/preferences_helper.rb')
-rw-r--r--app/helpers/preferences_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/preferences_helper.rb b/app/helpers/preferences_helper.rb
index 1b1f4162df4..8470d733495 100644
--- a/app/helpers/preferences_helper.rb
+++ b/app/helpers/preferences_helper.rb
@@ -1,5 +1,12 @@
# Helper methods for per-User preferences
module PreferencesHelper
+ def layout_choices
+ [
+ ['Small', :small],
+ ['Wide', :wide]
+ ]
+ end
+
# Maps `dashboard` values to more user-friendly option text
DASHBOARD_CHOICES = {
projects: 'Your Projects (default)',