Sha256: 4d1b0fa4f9440f5b76a88b5165aeb38117ec4539f728e3781ebef3cd49517723

Contents?: true

Size: 392 Bytes

Versions: 11

Compression:

Stored size: 392 Bytes

Contents

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

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

  <%= link_to :controller => resource, :action => "index" do %>
    <h3><%= _t(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

11 entries across 11 versions & 1 rubygems

Version Path
typus-3.0.2 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.0.1 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-3.0.0 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-1.0.0.pre13 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-1.0.0.pre12 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-1.0.0.pre11 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-1.0.0.pre10 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-1.0.0.pre9 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-1.0.0.pre8 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-1.0.0.pre7 app/views/admin/helpers/sidebar/_sidebar.html.erb
typus-1.0.0.pre6 app/views/admin/helpers/sidebar/_sidebar.html.erb