diff options
Diffstat (limited to 'app/views/layouts/admin.html.haml')
| -rw-r--r-- | app/views/layouts/admin.html.haml | 20 |
1 files changed, 18 insertions, 2 deletions
| diff --git a/app/views/layouts/admin.html.haml b/app/views/layouts/admin.html.haml index cb48c50..e3fc92f 100644 --- a/app/views/layouts/admin.html.haml +++ b/app/views/layouts/admin.html.haml | |||
| @@ -1,13 +1,13 @@ | |||
| 1 | !!! 5 | 1 | !!! 5 |
| 2 | %html | 2 | %html |
| 3 | %head | 3 | %head |
| 4 | %title Thoughts - Admin | 4 | %title= content_for?(:title) ? "Four Island - Admin - #{yield(:title)}" : "Four Island - Admin" |
| 5 | = csrf_meta_tags | 5 | = csrf_meta_tags |
| 6 | = stylesheet_link_tag 'admin', media: 'all', 'data-turbolinks-track': 'reload' | 6 | = stylesheet_link_tag 'admin', media: 'all', 'data-turbolinks-track': 'reload' |
| 7 | = javascript_include_tag 'application', 'data-turbolinks-track': 'reload' | 7 | = javascript_include_tag 'application', 'data-turbolinks-track': 'reload' |
| 8 | %body | 8 | %body |
| 9 | #banner | 9 | #banner |
| 10 | = link_to "Thoughts", root_url | 10 | = link_to "Four Island", root_url |
| 11 | - if flash[:alert] | 11 | - if flash[:alert] |
| 12 | #flash.flash-alert | 12 | #flash.flash-alert |
| 13 | %span.flash-tag ERROR: | 13 | %span.flash-tag ERROR: |
| @@ -29,5 +29,21 @@ | |||
| 29 | = link_to "Streams", admin_streams_url, class: "major-link" | 29 | = link_to "Streams", admin_streams_url, class: "major-link" |
| 30 | %ul.minors | 30 | %ul.minors |
| 31 | %li.minor= link_to "New stream", new_admin_stream_url | 31 | %li.minor= link_to "New stream", new_admin_stream_url |
| 32 | %li{major_sidebar_attrs("links")} | ||
| 33 | = link_to "Links", admin_links_url, class: "major-link" | ||
| 34 | %ul.minors | ||
| 35 | %li.minor= link_to "New link", new_admin_link_url | ||
| 36 | %li{major_sidebar_attrs("games")} | ||
| 37 | = link_to "Games", admin_games_url, class: "major-link" | ||
| 38 | %ul.minors | ||
| 39 | %li.minor= link_to "New game", new_admin_game_url | ||
| 40 | %li{major_sidebar_attrs("comments")} | ||
| 41 | = link_to "Comments", admin_comments_url, class: "major-link" | ||
| 42 | %ul.minors | ||
| 43 | %li.minor= link_to "Pending", pending_admin_comments_url | ||
| 44 | %li{major_sidebar_attrs("quotes")} | ||
| 45 | = link_to "Quotes", admin_quotes_url, class: "major-link" | ||
| 46 | %ul.minors | ||
| 47 | %li.minor= link_to "Pending", pending_admin_quotes_url | ||
| 32 | #main | 48 | #main |
| 33 | = yield | 49 | = yield |
