2010-05-25 00:32:12 +00:00
|
|
|
- title t('.title', :type => @content_type.name.capitalize)
|
2010-05-24 00:18:23 +00:00
|
|
|
|
|
|
|
- content_for :submenu do
|
2011-11-08 00:11:15 +00:00
|
|
|
= render 'locomotive/shared/menu/contents'
|
2010-07-23 23:57:18 +00:00
|
|
|
|
2011-04-27 05:18:02 +00:00
|
|
|
- content_for :actions do
|
2011-11-08 00:11:15 +00:00
|
|
|
= render 'locomotive/shared/actions/contents'
|
2010-07-23 23:57:18 +00:00
|
|
|
|
2010-05-24 00:18:23 +00:00
|
|
|
- content_for :buttons do
|
2011-11-08 14:34:25 +00:00
|
|
|
- if can?(:manage, Locomotive::ContentType)
|
|
|
|
= local_action_button :edit, edit_content_type_url(@content_type), :class => 'edit'
|
2011-06-26 00:01:11 +00:00
|
|
|
|
2011-12-22 23:45:32 +00:00
|
|
|
= local_action_button :new, new_content_entry_url(@content_type.slug), :class => 'new'
|
2010-05-24 00:18:23 +00:00
|
|
|
|
2010-07-23 23:57:18 +00:00
|
|
|
- if @content_type.description.present?
|
2010-05-24 00:18:23 +00:00
|
|
|
%p= @content_type.description
|
|
|
|
|
2010-06-16 14:43:29 +00:00
|
|
|
- if @content_type.groupable?
|
2012-01-04 01:07:53 +00:00
|
|
|
- @content_entries.each do |group|
|
|
|
|
.box
|
|
|
|
%h3= group[:name] || t('.category_noname')
|
|
|
|
.inner
|
|
|
|
= render 'list', :content_type => @content_type, :entries => group[:entries]
|
2010-05-24 00:18:23 +00:00
|
|
|
- else
|
2012-01-04 01:07:53 +00:00
|
|
|
= render 'list', :content_type => @content_type, :entries => @content_entries
|
2010-07-23 23:57:18 +00:00
|
|
|
|
2011-11-08 14:34:25 +00:00
|
|
|
- if can?(:manage, Locomotive::ContentType)
|
2011-06-26 00:01:11 +00:00
|
|
|
#local-actions-bottom-bar
|
|
|
|
%p.tleft
|
2012-01-04 01:07:53 +00:00
|
|
|
= link_to t('.destroy'), content_type_url(@content_type), :confirm => t('locomotive.messages.confirm'), :method => :delete, :class => 'button remove'
|