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.11 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.0.11.rc5 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.1.0.rc11 app/themes/default/views/helpers/admin/resources/_sidebar.html.erb
typus-3.1.0.rc10 app/themes/default/views/helpers/admin/resources/_sidebar.html.erb
typus-3.0.11.rc4 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.1.0.rc9 app/themes/default/views/helpers/admin/resources/_sidebar.html.erb
typus-3.0.11.rc3 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.1.0.rc8 app/views/helpers/admin/resources/_sidebar.html.erb
typus-3.1.0.rc7 app/views/helpers/admin/resources/_sidebar.html.erb
typus-3.1.0.rc6 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.1.0.rc5 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.1.0.rc4 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.1.0.rc3 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.1.0.rc2 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.0.11.rc2 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.0.11.rc1 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.1.0.rc1 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.0.10 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.0.9 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.0.8 app/views/admin/helpers/sidebar/_sidebar.html.erb