denny/ShinyCMS-ruby

View on GitHub
plugins/ShinyCMS/app/views/shinycms/menu/_menu.html.erb

Summary

Maintainability
Test Coverage
<ul id="menu" class="sm sm-clean">
  <% if plugin_loaded? :ShinyPages %>
  <%= render partial: 'shiny_pages/menu/pages',
             locals: { items: top_level_menu_items, path: '/' } %>
  <% end %>

  <% plugins_with_main_site_menu_templates.each do |plugin| %>
    <%= render partial: plugin.partial( 'menu/section' ) %>
  <% end %>

  <% if feature_enabled? :tags %>
  <%= render partial: 'menu/tags' %>
  <% end %>
</ul>