<%= link_to 'Kitsune CMS', :controller => 'admin/kitsune/models' %>
<% if Kitsune.authenticate && signed_in? %> <%= link_to 'Sign out', url_for(:controller => 'admin/kitsune/sessions', :action => 'destroy'), :method => :delete, :class => 'sign_out' %> <% end %> View Site
<%= yield %>
-
<% @models.each do |model| %>
<% if model.is_a? Hash %>
<% model.each do |key, value| %>
- <%= key %> <% value.each do |inner_model| %>
- <%= link_to inner_model.admin_name, :controller => 'admin/kitsune/records', :model_id => inner_model.object_class %> <% end %> <% end %> <% else %>
- <%= link_to model.admin_name, :controller => 'admin/kitsune/records', :model_id => model.object_class %> <% end %> <% end %>