From e47e83cf6bded3d1924b4d500193e7876833ef83 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 2 Jul 2017 13:03:43 -0400 Subject: Created admin panel Currently allows you to create and edit blogs, including associated records. Uses a WYSIWYG editor that allows uploading images. Also included jQuery :( --- app/helpers/admin/admin_helper.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 app/helpers/admin/admin_helper.rb (limited to 'app/helpers/admin/admin_helper.rb') diff --git a/app/helpers/admin/admin_helper.rb b/app/helpers/admin/admin_helper.rb new file mode 100644 index 0000000..97781a0 --- /dev/null +++ b/app/helpers/admin/admin_helper.rb @@ -0,0 +1,11 @@ +module Admin::AdminHelper + + def major_sidebar_attrs(section) + if section == @section + { class: "major active" } + else + { class: "major inactive" } + end + end + +end -- cgit 1.4.1