<li class="dropdown menu_tab_dropdown">
  <%= link_to (menu_title + content_tag(:span, '', :class => "caret")).html_safe, "#", :class => "dropdown-toggle", :'data-toggle' => "dropdown", :id => menu_name %>
  <ul class="dropdown-menu">
    <% authorized_menu_actions(menu_items).each do |item| %>
      <% case item %>
      <% when Menu::Item %>
          <%= menu_item_tag item %>
      <% when Menu::Divider %>
        <%= content_tag(:li, "", :class => "divider") %>
        <%= content_tag(:li, _(item.caption), :class => "nav-header") if item.caption %>
      <% when Menu::Toggle %>
        <%= content_tag :li, :class => "dropdown-submenu" do %>
          <%= link_to(_(item.caption), "#", :class => "dropdown-toggle", :"data-toggle" => "dropdown") %>
          <%= content_tag :ul, :class => "dropdown-menu" do %>
            <% authorized_menu_actions(item.children).each do |sub_item| %>
              <%= menu_item_tag sub_item %>
            <% end %>
          <% end %>
        <% end %>
      <% end %>
    <% end %>
  </ul>
</li>
