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