Sha256: 1857fa046ddb288a705d1ef6908c866916faeaa082f2f8e50158341be3ca2e58

Contents?: true

Size: 916 Bytes

Versions: 1

Compression:

Stored size: 916 Bytes

Contents

<% content_for :header do %>
  <% if @stack.size > 1 %>
    <%= @title = t(:title_sublisting, :scope => [:content, :list], :group => @stack.klass.plural_name, :title => @stack[-2].class.singular_name + " " + @stack[-2].human_id.to_s).html_safe %>
  <% else %>
    <%= @title = t(:title, :scope => [:content, :list], :class => @stack.klass.plural_name).html_safe %> 
  <% end %>
<% end %>

<%= Skyline::Presenters::Table.new(@elements,stack.klass,self).output %>

<% content_for :meta do %>
  <%= render :partial => "add", :locals => {:klass => stack.klass, :record => stack.current, :return_to => url_for(:types => stack.klass.to_s.underscore.pluralize)} %>	
  <%= render :partial => "filter" if stack.klass.filterable? %>
<% end %>

<% if @elements.respond_to?(:total_entries) && @elements.total_entries > @elements.per_page %>
  <% content_for :footer do %>
    <%= will_paginate @elements %>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skylinecms-3.3.0 app/views/skyline/content/list.html.erb