diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-02 13:03:43 -0400 | 
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-02 13:03:43 -0400 | 
| commit | e47e83cf6bded3d1924b4d500193e7876833ef83 (patch) | |
| tree | 058f011637e67455dcd8451fbfa784b5883c6f69 /app/helpers | |
| parent | 528ccde8915cd1ed7a39e137dd4d98869797956a (diff) | |
| download | thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.tar.gz thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.tar.bz2 thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.zip | |
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 :(
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/admin/admin_helper.rb | 11 | ||||
| -rw-r--r-- | app/helpers/admin/blogs_helper.rb | 2 | ||||
| -rw-r--r-- | app/helpers/admin/dashboard_helper.rb | 2 | 
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 @@ | |||
| 1 | module 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 | |||
| 11 | end | ||
| 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 @@ | |||
| 1 | module Admin::BlogsHelper | ||
| 2 | end | ||
| 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 @@ | |||
| 1 | module Admin::DashboardHelper | ||
| 2 | end | ||
