.container .row .col-lg-2 = link_to admin_roles_path, class: '', 'data-position' => 'bottom', 'data-tooltip' => t('keppler.actions.back') do .arrow-back.btn.btn-default %i.icon-arrow-left = t('keppler.actions.back') .show-section .row .col-lg-12 .box.slice-box .box-header.with-border %h3.box-title= t("keppler.modules.#{controller_path.underscore}") .box-tools.pull-right - if can?(Role).update? = link_to edit_admin_role_path(@role), class: 'btn btn-box-tool', title: t('keppler.actions.edit') do %i.icon-pencil - if can?(Role).destroy? = link_to admin_role_path(@role), class: 'btn btn-box-tool', title: t('keppler.actions.delete'), method: :delete, data: { confirm: t('keppler.messages.data_confirm') } do %i.icon-trash .box-body.box-body-no-padding %table.table.table-striped %tbody - @role.as_json(only: %w[name]).each do |attribute, value| %tr.list-row %th.display-label= t("activerecord.attributes.#{attribute}") %td.display-value.fs-body-1.tc-black-2 - if @attachments.include?(attribute) = image_tag value - else = value