Sha256: 55c25c0e9fc8ddc0881cf127d322156e0f005633b5a9e20b3a90a1a856c343de

Contents?: true

Size: 1.06 KB

Versions: 8

Compression:

Stored size: 1.06 KB

Contents

- title t('.title', :type => @content_type.name.capitalize)

- content_for :submenu do
  = render 'admin/shared/menu/contents'

- content_for :head do
  = include_javascripts :contents

- content_for :buttons do
  = admin_button_tag :edit, edit_admin_content_type_url(@content_type), :class => 'edit'
  = admin_button_tag :new, new_admin_content_url(@content_type.slug), :class => 'new'

- if @content_type.description.present?
  %p= @content_type.description

- if @content_type.groupable?
  - @contents.each do |group|
    %h3= group[:name] || t('.category_noname')
    = render 'list', :contents => group[:items]
    %br
- else
  = render 'list', :contents => @contents

= form_tag sort_admin_contents_path(@content_type.slug), :method => :put, :class => 'formtastic' do
  = hidden_field_tag :order

  = render 'admin/shared/form_actions', :delete_button => link_to(content_tag(:em, escape_once(' ')) + t('.destroy'), admin_content_type_url(@content_type), :confirm => t('admin.messages.confirm'), :method => :delete, :class => 'button small remove'), :button_label => :update

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
locomotive_cms-1.0.0.beta.2 app/views/admin/contents/index.html.haml
locomotive_cms-1.0.0.beta app/views/admin/contents/index.html.haml
locomotive_cms-0.0.4.beta12 app/views/admin/contents/index.html.haml
locomotive_cms-0.0.4.beta11 app/views/admin/contents/index.html.haml
locomotive_cms-0.0.4.beta10 app/views/admin/contents/index.html.haml
locomotive_cms-0.0.4.beta9 app/views/admin/contents/index.html.haml
locomotive_cms-0.0.4.beta8 app/views/admin/contents/index.html.haml
locomotive_cms-0.0.4.beta7 app/views/admin/contents/index.html.haml