From 86a40145742fcde30da11d2810930b6f94ce1366 Mon Sep 17 00:00:00 2001 From: Jens Kraemer Date: Tue, 11 Oct 2016 11:06:34 +0800 Subject: [PATCH] make the sidebar collapsible - uses the localStorage API - degrades to a non-persistent collapsible sidebar if localStorage isn't available - degrades to shared global sidebar state for all pages on IE8 - degrades nicely if no JS is available ('hide sidebar' link is not there in this case) --- app/views/layouts/base.html.erb | 9 ++++- public/javascripts/application.js | 81 ++++++++++++++++++++++++++++++++++++++ public/stylesheets/application.css | 27 ++++++++++--- 3 files changed, 110 insertions(+), 7 deletions(-) diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb index 204cdb6..2128c3a 100644 --- a/app/views/layouts/base.html.erb +++ b/app/views/layouts/base.html.erb @@ -98,13 +98,20 @@ <% end %> -