2014-01-21 04:51:49 +00:00
|
|
|
= link_to t("layout.flash_notifies.new"), new_admin_flash_notify_path, class: 'button' if can? :create, FlashNotify
|
2012-07-23 15:25:37 +01:00
|
|
|
|
2014-01-21 04:51:49 +00:00
|
|
|
%table#myTable.tablesorter.flash_notifys{cellspacing: "0", cellpadding: "0"}
|
2012-07-23 15:25:37 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th.th1= t("activerecord.attributes.flash_notify.body_en")
|
|
|
|
%th.th2= t("activerecord.attributes.flash_notify.body_ru")
|
|
|
|
%th.th3= t("activerecord.attributes.flash_notify.published")
|
|
|
|
%th.th3= t("layout.flash_notifies.actions")
|
|
|
|
%tbody
|
|
|
|
- @flash_notifies.each do |flash_notify|
|
2014-01-21 04:51:49 +00:00
|
|
|
%tr{class: cycle("odd", "even")}
|
2012-07-24 10:19:22 +01:00
|
|
|
%td= flash_notify.body_en.truncate 18
|
|
|
|
%td= flash_notify.body_ru.truncate 18
|
2012-07-23 15:25:37 +01:00
|
|
|
%td= flash_notify.published
|
|
|
|
%td
|
2012-07-25 19:05:25 +01:00
|
|
|
= link_to t("layout.flash_notifies.edit"), edit_admin_flash_notify_path(flash_notify)
|
2014-03-14 21:55:28 +00:00
|
|
|
= link_to t("layout.flash_notifies.delete"), admin_flash_notify_path(flash_notify), method: :delete, data: { confirm: t("layout.mass_builds.cancel_confirm") } if can?(:delete, flash_notify)
|
2012-07-23 15:25:37 +01:00
|
|
|
|
|
|
|
= will_paginate @flash_notifies
|
|
|
|
|
2012-07-25 19:14:22 +01:00
|
|
|
= render 'submenu'
|