Added user preference to change layout width
Created by: gopeter
As discussed here, I've added an option to choose between a small and a wide application layout. Old MR: #9696
To achieve this, I've added a new column to the user table which stores the layout option and extended the fluid_layout
function which now uses the user preference.
Screenshot before:
Screenshot after:
1 1 # Helper methods for per-User preferences 2 2 module PreferencesHelper 3 def layout_choices 4 [ 5 ['Fixed', :fixed], 6 ['Fluid', :fluid] 1 class AddLayoutOptionForUsers < ActiveRecord::Migration 2 def change 3 add_column :users, :layout, :integer, default: 0
Please register or sign in to reply