2013-04-04 00:42:46 +02:00
|
|
|
- title t('.title')
|
2009-01-18 17:42:51 +01:00
|
|
|
|
2013-04-04 00:42:46 +02:00
|
|
|
%p= link_to t('.new'), new_article_category_path, class: 'btn btn-primary'
|
2012-10-29 17:35:50 +01:00
|
|
|
|
|
|
|
%table.table.table-striped
|
2012-11-10 16:51:30 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
2013-10-22 00:09:11 +02:00
|
|
|
%th= heading_helper ArticleCategory, :name
|
2013-10-03 16:03:13 +02:00
|
|
|
%th= heading_helper ArticleCategory, :description
|
2012-11-10 16:51:30 +01:00
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
- @article_categories.each do |article_category|
|
|
|
|
%tr
|
|
|
|
%td= article_category.name
|
2014-05-21 14:12:38 +02:00
|
|
|
%td= truncate article_category.description, length: 50
|
2012-11-10 16:51:30 +01:00
|
|
|
%td
|
2013-04-04 00:42:46 +02:00
|
|
|
= link_to t('ui.edit'), edit_article_category_path(article_category), class: 'btn btn-mini'
|
2016-03-04 23:13:28 +01:00
|
|
|
= link_to t('ui.delete'), article_category, :method => :delete, :data => {:confirm => t('ui.confirm_delete', name: article_category.name)},
|
2012-11-10 16:51:30 +01:00
|
|
|
class: 'btn btn-mini btn-danger'
|