Sha256: 6415d596b14638e291ee23214188964aae88020608d93afad6b007acca87ca5d
Contents?: true
Size: 1.61 KB
Versions: 25
Compression:
Stored size: 1.61 KB
Contents
.container .row .col-lg-2 = link_to admin_users_path, '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-3 .box.slice-box.p-15 .box-body.box-profile = image_tag (@user.avatar.url || 'admin/avatar_keppler.svg'), class: 'profile-user-img img-circle img-responsive', alt: @user.name %h3.profile-username.text-center= @user.name %p.text-muted.text-center= @user.rol.humanize .col-lg-9 .box.slice-box.p-15 .box-header.with-border %h3.box-title= @user.name || 'User' .box-tools.pull-right - if can?(User).update? = link_to edit_admin_user_path(@user), class: 'btn btn-box-tool', title: t('keppler.actions.edit').to_s do %i.icon-pencil - if can?(User).destroy? - unless current_user == @user = link_to admin_user_path(@user), class: 'btn btn-box-tool', title: t('keppler.actions.delete').to_s, method: :delete, data: { confirm: t('keppler.messages.data_confirm') } do %i.icon-trash .box-body.box-body-no-padding %table.table %tbody - @user.as_json(except: %i[username deleted_at], methods: [:rol]).each do |attribute, value| %tr.list-row %th.display-label= t("activerecord.attributes.#{attribute}") %td.display-value.fs-body-1.tc-black-2= value
Version data entries
25 entries across 24 versions & 1 rubygems