about summary refs log tree commit diff stats
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/admin/admin_helper.rb11
-rw-r--r--app/helpers/admin/blogs_helper.rb2
-rw-r--r--app/helpers/admin/dashboard_helper.rb2
3 files changed, 15 insertions, 0 deletions
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 @@
1module Admin::AdminHelper
2
3 def major_sidebar_attrs(section)
4 if section == @section
5 { class: "major active" }
6 else
7 { class: "major inactive" }
8 end
9 end
10
11end
diff --git a/app/helpers/admin/blogs_helper.rb b/app/helpers/admin/blogs_helper.rb new file mode 100644 index 0000000..8dbe542 --- /dev/null +++ b/app/helpers/admin/blogs_helper.rb
@@ -0,0 +1,2 @@
1module Admin::BlogsHelper
2end
diff --git a/app/helpers/admin/dashboard_helper.rb b/app/helpers/admin/dashboard_helper.rb new file mode 100644 index 0000000..4052b7c --- /dev/null +++ b/app/helpers/admin/dashboard_helper.rb
@@ -0,0 +1,2 @@
1module Admin::DashboardHelper
2end