39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
|
.block
|
||
|
.secondary-navigation
|
||
|
%ul.wat-cf
|
||
|
%li.first= link_to t("layout.roles.list"), roles_path
|
||
|
%li= link_to t("layout.roles.new"), new_role_path
|
||
|
%li.active= link_to t("layout.roles.show"), role_path
|
||
|
.content
|
||
|
.inner
|
||
|
%p
|
||
|
%b
|
||
|
Id
|
||
|
\:
|
||
|
= @role.id
|
||
|
%p
|
||
|
%b
|
||
|
= t("activerecord.attributes.role.name")
|
||
|
\:
|
||
|
= @role.name
|
||
|
%p
|
||
|
%b
|
||
|
= t("activerecord.models.permission")
|
||
|
\:
|
||
|
-unless @permissions.empty?
|
||
|
%table.table
|
||
|
%tr
|
||
|
%th.first ID
|
||
|
%th= t("activerecord.attributes.right.name")
|
||
|
- @permissions.each do |permission|
|
||
|
%tr{:class => cycle("odd", "even")}
|
||
|
%td
|
||
|
= permission.right_id
|
||
|
%td
|
||
|
= permission.name
|
||
|
.wat-cf
|
||
|
= link_to image_tag("web-app-theme/icons/application_edit.png", :alt => t("layout.edit")) + " " + t("layout.edit"), edit_role_path(@role), :class => "button"
|
||
|
= link_to image_tag("web-app-theme/icons/cross.png", :alt => t("layout.delete")) + " " + t("layout.delete"), role_path(@role), :method => "delete", :class => "button", :confirm => t("layout.users.confirm_delete")
|
||
|
|
||
|
- content_for :sidebar, render(:partial => 'sidebar')
|