Sha256: 0c107f149e5e38c01c9dbfd5a8e67d1d1d77660b60354958ae2ec3266aa589ea

Contents?: true

Size: 1.65 KB

Versions: 11

Compression:

Stored size: 1.65 KB

Contents

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

- content_for :submenu do
  = render 'admin/shared/menu/contents'
    
- content_for :head do
  = javascript_include_tag 'admin/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 @contents.empty?
  %p.no-items= t('.no_items', :url => new_admin_content_url(@content_type.slug))
- else
  %ul{ :id => 'contents-list', :class => "list #{'sortable' if @content_type.order_by == '_position_in_list'}" }
    - @contents.each do |content|
      %li.content{ :id => "content-#{content._id}" }
        %em
        %strong
          = link_to content.send(@content_type.highlighted_field_name), edit_admin_content_path(@content_type.slug, content)
        .more
          %span
            = t('admin.contents.index.updated_at')
          = l content.updated_at, :format => :short rescue 'n/a'
          
          = link_to image_tag('admin/list/icons/trash.png'), admin_content_path(@content_type.slug, content), :class => 'remove', :confirm => t('admin.messages.confirm'), :method => :delete
        
= 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(:span, 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

11 entries across 11 versions & 1 rubygems

Version Path
locomotive_cms-0.0.2.5 app/views/admin/contents/index.html.haml
locomotive_cms-0.0.2.4 app/views/admin/contents/index.html.haml
locomotive_cms-0.0.2.3 app/views/admin/contents/index.html.haml
locomotive_cms-0.0.2.2 app/views/admin/contents/index.html.haml
locomotive_cms-0.0.2.1 app/views/admin/contents/index.html.haml
locomotive_cms-0.0.2 app/views/admin/contents/index.html.haml
locomotive_cms-0.0.1.4 app/views/admin/contents/index.html.haml
locomotive_cms-0.0.1.3 app/views/admin/contents/index.html.haml
locomotive_cms-0.0.1.2 app/views/admin/contents/index.html.haml
locomotive_cms-0.0.1.1 app/views/admin/contents/index.html.haml
locomotive_cms-0.0.1 app/views/admin/contents/index.html.haml