From b0a50c08979cc54b4c73fbd099d33e57e3403482 Mon Sep 17 00:00:00 2001 From: Jens Kraemer Date: Wed, 31 Aug 2016 11:47:29 +0800 Subject: [PATCH] make the sidebar collapsible - uses the localStorage API - degrades to a non-persistent collapsible sidebar if localStorage isn't available - degrades nicely if no JS is available ('hide sidebar' link is not there in this case) --- app/views/layouts/base.html.erb | 2 +- public/javascripts/application.js | 82 ++++++++++++++++++++++++++++++++++++++ public/stylesheets/application.css | 22 ++++++++-- 3 files changed, 101 insertions(+), 5 deletions(-) diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb index 6c5a9b2..5e75bad 100644 --- a/app/views/layouts/base.html.erb +++ b/app/views/layouts/base.html.erb @@ -98,7 +98,7 @@ <% end %> -