Files
cmtool/app/views/cmtool/news/index.html.haml
T
2012-03-25 14:24:02 +02:00

25 lines
653 B
Plaintext

- title :index, Cmtool::News
- if @news.any?
%table.index-table
%thead
%tr
%th= Cmtool::News.human_attribute_name(:title)
%th= Cmtool::News.human_attribute_name(:active)
%th= Cmtool::News.human_attribute_name(:date)
%th
%th
%tbody
- @news.each do |news|
%tr
%td= link_to news.title, cmtool.news_path(news)
%td= boolean_text news.active?
%td=l news.date
= edit_td news
= destroy_td news
- else
= empty_result(Cmtool::News)
- content_for :page_links do
%ul
%li= link_to link_to_new_content(Cmtool::News), cmtool.new_news_path