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/views/layouts/admin.html.haml | |
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/views/layouts/admin.html.haml')
-rw-r--r-- | app/views/layouts/admin.html.haml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/views/layouts/admin.html.haml b/app/views/layouts/admin.html.haml new file mode 100644 index 0000000..a2c2d95 --- /dev/null +++ b/app/views/layouts/admin.html.haml | |||
@@ -0,0 +1,27 @@ | |||
1 | !!! 5 | ||
2 | %html | ||
3 | %head | ||
4 | %title Thoughts - Admin | ||
5 | = csrf_meta_tags | ||
6 | = stylesheet_link_tag 'admin', media: 'all', 'data-turbolinks-track': 'reload' | ||
7 | = javascript_include_tag 'application', 'data-turbolinks-track': 'reload' | ||
8 | %body | ||
9 | #banner= link_to "Thoughts", root_url | ||
10 | #container | ||
11 | %ul#sidebar | ||
12 | %li{major_sidebar_attrs("dashboard")} | ||
13 | = link_to "Dashboard", admin_url, class: "major-link" | ||
14 | %li{major_sidebar_attrs("blogs")} | ||
15 | = link_to "Blogs", admin_blogs_url, class: "major-link" | ||
16 | %ul.minors | ||
17 | %li.minor= link_to "New blog", new_admin_blog_url | ||
18 | #main | ||
19 | - if flash[:alert] | ||
20 | #flash.flash-alert | ||
21 | %span.flash-tag ERROR: | ||
22 | = flash.alert | ||
23 | - if flash[:notice] | ||
24 | #flash.flash-notice | ||
25 | %span.flash-tag NOTICE: | ||
26 | = flash.notice | ||
27 | = yield | ||