views/roles/index.haml in proxes-0.4.3 vs views/roles/index.haml in proxes-0.4.4
- old
+ new
@@ -8,12 +8,13 @@
%th Permissions
%tbody
-list.each do |entity|
%tr
%td
- %a{ href: "/_proxes/roles/#{entity.id}" }= entity.name
+ %a{ href: "#{base_path}/#{entity.id}" }= entity.name
%td
= entity.permissions_dataset.count
- .panel-body.text-right
- %a.btn.btn-primary{ href: '/_proxes/roles/new' } New Role
+ - if policy(::ProxES::Role).create?
+ .panel-body.text-right
+ %a.btn.btn-primary{ href: "#{base_path}/new" } New Role
=pagination(list, base_path)