Sha256: 17825350c5df026f7b7bcdfdf386e7a1a7594d4c001b7b3e25027285fb8d3250

Contents?: true

Size: 826 Bytes

Versions: 14

Compression:

Stored size: 826 Bytes

Contents

- title_bar "News", [{"title"=>"New News", "url"=>new_category_news_path(params[:category_id])}]

%div#active_admin_content.without_sidebar
  - main_content "News List" do
    - index_table ["Title", "Status", "Publish", "Updated", "Created", "", "", ""] do
      - @news.each_with_index do |news, i|
        %tr{:class=>cycle( "odd", "even") }
          %td= news.title
          %td= news.status
          %td= news.publish_from.strftime("%b %e, %l:%M %p")
          %td= news.updated_at.strftime("%b %e, %l:%M %p")
          %td= news.created_at.strftime("%b %e, %l:%M %p")
          %td= link_to 'Show', category_news_path(params[:category_id], news)
          %td= link_to 'Edit', edit_category_news_path(params[:category_id], news)
          %td= link_to 'Destroy', news, :confirm => 'Are you sure?', :method => :delete

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ems-0.1.5 app/views/ems/news/index.html.haml
ems-0.1.4 app/views/ems/news/index.html.haml
ems-0.1.3 app/views/ems/news/index.html.haml
ems-0.1.2 app/views/ems/news/index.html.haml
ems-0.1.1 app/views/ems/news/index.html.haml
ems-0.1.0 app/views/ems/news/index.html.haml
ems-0.0.9 app/views/ems/news/index.html.haml
ems-0.0.8 app/views/ems/news/index.html.haml
ems-0.0.7 app/views/ems/news/index.html.haml
ems-0.0.6 app/views/ems/news/index.html.haml
ems-0.0.5 app/views/ems/news/index.html.haml
ems-0.0.4 app/views/ems/news/index.html.haml
ems-0.0.3 app/views/ems/news/index.html.haml
ems-0.0.2 app/views/ems/news/index.html.haml