denny/ShinyCMS-ruby

View on GitHub
plugins/ShinyCMS/app/components/shinycms/admin/menu/other_component.html.erb

Summary

Maintainability
Test Coverage
<%= component 'admin/menu/section',
    text: t( 'shinycms.admin.other.menu' ), icon: 'settings' do %>

  <% ShinyCMS.plugins.with_partial( 'admin/menu/_other_item.html.erb' ).each do |plugin| %>
  <%= render partial: plugin.partial( 'admin/menu/other_item' ) %>
  <% end %>

  <%= component 'admin/menu/item', link: shinycms.comments_path,
      text: t( 'shinycms.admin.comments.menu' ), icon: 'trash',
      if: @current_user.can?( :list, :spam_comments ) %>

<% end %>