Sha256: c660f229a74b44d076d569ea7d712a975962725b54821706fd7444958c58afc5

Contents?: true

Size: 414 Bytes

Versions: 24

Compression:

Stored size: 414 Bytes

Contents

<% resources.each do |key, value| %>

  <%
    klass = key.typus_constantize
    resource = "/admin/#{klass.to_resource}"
  %>

  <%= link_to :controller => resource, :action => "index" do %>
    <h3><%= klass.model_name.human.pluralize %></h3>
  <% end %>

  <% if @resource.model_name.eql?(key) %>
    <ul>
      <% value.each do |v| %>
        <li><%= v %></li>
      <% end %>
    </ul>
  <% end %>

<% end %>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
typus-3.0.7 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.0.6 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.0.5 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.0.4 app/views/admin/helpers/sidebar/_sidebar.html.erb