[refs #144] fix template

This commit is contained in:
Alexander Machehin 2012-02-03 19:40:47 +06:00
parent 549fc242d8
commit b0d0b21ec4
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@
%td
= link_to group.owner.name, user_path(group.owner)
%td.last
#{link_to t("layout.show"), group_path(group)} | #{link_to t("layout.edit"), edit_group_path(group)} | #{link_to t("layout.delete"), group_path(group), :method => :delete, :confirm => t("layout.groups.confirm_delete")}
= raw [(link_to t("layout.edit"), edit_group_path(group) if can? :update, group),
(link_to t("layout.delete"), group_path(group), :method => :delete, :confirm => t("layout.groups.confirm_delete") if can? :destroy, group)].compact.join(' | ')
.actions-bar.wat-cf
.actions= will_paginate @groups, :param_name => :group_page