Sha256: ea9710e6d2535c8b57435a11f3cb0a60b2d4ac572364d0c4d17eb2f1c9e17d2b

Contents?: true

Size: 391 Bytes

Versions: 5

Compression:

Stored size: 391 Bytes

Contents

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

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

  <%= link_to :controller => resource, :action => "index" do %>
    <h3><%= _(key.constantize.model_name.human.pluralize) %></h3>
  <% end %>

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

<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typus-1.0.0.pre5 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-1.0.0.pre4 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-1.0.0.pre3 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-1.0.0.pre2 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-1.0.0.pre app/views/admin/helpers/sidebar/_sidebar.html.erb