aboutsummaryrefslogtreecommitdiff
path: root/src/views/dropdown/item.ecr
blob: 34f04da38357d7ffa01fa11c772ea8eed12ff01f (plain)
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
<% 
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 
%>