Sha256: b2de1804944dab92549f1e3cfff5e815dfdc9b7c9807edd55942e351edd2b5cd

Contents?: true

Size: 1023 Bytes

Versions: 5

Compression:

Stored size: 1023 Bytes

Contents

<li class="dropdown menu_tab_settings">
<% choices = setting_options %>
<%= link_to (_("More") + content_tag(:span,'', :class=>"caret")).html_safe, "#", :class => "dropdown-toggle", :'data-toggle'=>"dropdown" unless choices.empty?%>
  <ul class="dropdown-menu">
    <% choices.each do |item|-%>
       <% if item[0] == :divider  %>
         <%= content_tag(:li, "", :class=>"divider") %>
       <% elsif item[0] == :group %>
         <%= content_tag :li, :class=>"dropdown-submenu" do %>
           <%= link_to(item[1],"#",:class=>"dropdown-toggle", :"data-toggle"=>"dropdown") %>
           <%=  content_tag :ul, :class=>"dropdown-menu" do%>
             <% item[2].each do |sub_item|-%>
               <%= content_tag(:li, link_to(sub_item[0], {:controller => sub_item[1], :action => :index})) %>
             <% end %>
           <% end %>
         <% end %>
       <% else %>
         <%= content_tag(:li, link_to(item[0], {:controller => item[1], :action => :index})) %>
       <% end -%>
    <% end -%>
  </ul>
</li>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/views/home/_settings.html.erb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/views/home/_settings.html.erb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/views/home/_settings.html.erb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/views/home/_settings.html.erb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/views/home/_settings.html.erb