Sha256: 101b7efc371a5eae85bcbdc443a18323b245b986c321ee5797300587f96b6e61

Contents?: true

Size: 915 Bytes

Versions: 7

Compression:

Stored size: 915 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
          - if news.publish_from.blank?
            %td not published
          - else
            %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

7 entries across 7 versions & 1 rubygems

Version Path
ems-0.1.12 app/views/ems/news/index.html.haml
ems-0.1.11 app/views/ems/news/index.html.haml
ems-0.1.10 app/views/ems/news/index.html.haml
ems-0.1.9 app/views/ems/news/index.html.haml
ems-0.1.8 app/views/ems/news/index.html.haml
ems-0.1.7 app/views/ems/news/index.html.haml
ems-0.1.6 app/views/ems/news/index.html.haml