From fbff52e48d4591a752d83fbebb49a3a355eef5ae Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 24 May 2016 20:42:20 -0400 Subject: add dropdown class and post type dropdown --- src/views/dropdown/item.ecr | 28 ++++++++++++++++++++++++++++ src/views/dropdown/menu.ecr | 19 +++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 src/views/dropdown/item.ecr create mode 100644 src/views/dropdown/menu.ecr (limited to 'src/views/dropdown') diff --git a/src/views/dropdown/item.ecr b/src/views/dropdown/item.ecr new file mode 100644 index 0000000..34f04da --- /dev/null +++ b/src/views/dropdown/item.ecr @@ -0,0 +1,28 @@ +<% +case @item[:type]? +when "divider" +%> + +<% +when "header" +%> + +<% +else +%> +
  • > + + <%= Icon.icon(@item[:icon]?) %> + <%= v(:name) %> + +
  • +<% +end +%> diff --git a/src/views/dropdown/menu.ecr b/src/views/dropdown/menu.ecr new file mode 100644 index 0000000..ca39c1e --- /dev/null +++ b/src/views/dropdown/menu.ecr @@ -0,0 +1,19 @@ + + <%= Icon.icon(@icon) %> + <%= h(@name) %>: + <%= h(@default_name) %> + + + + -- cgit v1.2.3