diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-05-24 20:42:20 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-05-24 20:42:20 -0400 |
commit | fbff52e48d4591a752d83fbebb49a3a355eef5ae (patch) | |
tree | 9549990f151888c98d2b5a2ad338a41f48c3e91e /src/views/dropdown/item.ecr | |
parent | 83242fd94df0280e7793caef912d7a12b240fcec (diff) | |
download | guff-fbff52e48d4591a752d83fbebb49a3a355eef5ae.tar.bz2 guff-fbff52e48d4591a752d83fbebb49a3a355eef5ae.zip |
add dropdown class and post type dropdown
Diffstat (limited to 'src/views/dropdown/item.ecr')
-rw-r--r-- | src/views/dropdown/item.ecr | 28 |
1 files changed, 28 insertions, 0 deletions
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" +%> + <li class='divider' role='separator'></li> +<% +when "header" +%> + <li class='dropdown-header' role='presentation'> + <%= v(:name) %> + </li> +<% +else +%> +<li <%= li_css %>> + <a + href='#' + title='<%= v(:text) %>' + data-id='<%= v(:id) %>' + data-name='<%= v(:name) %>' + > + <%= Icon.icon(@item[:icon]?) %> + <%= v(:name) %> + </a> +</li> +<% +end +%> |