1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
!!! 5
%html
%head
%title= content_for?(:title) ? "Four Island - Admin - #{yield(:title)}" : "Four Island - Admin"
= csrf_meta_tags
= stylesheet_link_tag 'admin', media: 'all', 'data-turbolinks-track': 'reload'
= javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
%body
#banner
= link_to "Four Island", root_url
- if flash[:alert]
#flash.flash-alert
%span.flash-tag ERROR:
= flash.alert
- if flash[:notice]
#flash.flash-notice
%span.flash-tag NOTICE:
= flash.notice
#container
%ul#sidebar
%li{major_sidebar_attrs("dashboard")}
= link_to "Dashboard", admin_url, class: "major-link"
%li{major_sidebar_attrs("blogs")}
= link_to "Blogs", admin_blogs_url, class: "major-link"
%ul.minors
%li.minor= link_to "New blog", new_admin_blog_url
%li.minor= link_to "Drafts", drafts_admin_blogs_url
%li{major_sidebar_attrs("streams")}
= link_to "Streams", admin_streams_url, class: "major-link"
%ul.minors
%li.minor= link_to "New stream", new_admin_stream_url
%li{major_sidebar_attrs("links")}
= link_to "Links", admin_links_url, class: "major-link"
%ul.minors
%li.minor= link_to "New link", new_admin_link_url
%li{major_sidebar_attrs("games")}
= link_to "Games", admin_games_url, class: "major-link"
%ul.minors
%li.minor= link_to "New game", new_admin_game_url
%li{major_sidebar_attrs("comments")}
= link_to "Comments", admin_comments_url, class: "major-link"
%ul.minors
%li.minor= link_to "Pending", pending_admin_comments_url
#main
= yield
|