<%=
new_post_button
%>
<%=
dropdown(
id: "posts-filter-type",
css: "posts-filter-menu",
name: "Type",
text: "Filter posts by type.",
icon: "",
default: "all",
items: [{
:id => "all",
:name => "All",
:text => "Show all types.",
}, {
:type => "divider",
}, {
:id => "blog",
:name => "Blog Post",
:icon => "fa-sticky-note-o",
:text => "Show blog posts.",
}, {
:id => "page",
:name => "Page",
:icon => "fa-bookmark-o",
:text => "Show pages.",
}, {
:id => "project",
:name => "Project",
:icon => "fa-cube",
:text => "Show projects.",
}],
)
%>
<%=
dropdown(
id: "posts-filter-state",
css: "posts-filter-menu",
name: "State",
text: "Filter by post state.",
icon: "",
default: "default",
items: [{
:id => "default",
:name => "Default",
:text => "Show drafts and posted items.",
}, {
:type => "divider",
}].concat(states_menu_items),
)
%>
<%=
dropdown(
id: "posts-filter-site",
css: "posts-filter-menu",
name: "Site",
text: "Filter by site.",
icon: "",
default: "all",
items: [{
:id => "all",
:name => "All",
:text => "Show all sites.",
}, {
:type => "divider",
}].concat(sites_menu_items),
)
%>
<%=
dropdown(
id: "posts-filter-user",
css: "posts-filter-menu",
name: "Author",
text: "Filter by author.",
icon: "",
default: "all",
items: [{
:id => "all",
:name => "All",
:text => "Show all authors.",
}, {
:type => "divider",
}].concat(authors_menu_items),
)
%>