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

Version Path
keppler-2.1.22 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.21 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.20 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.19 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.18 testing-with-2.1.18/app/views/admin/users/show.html.haml
keppler-2.1.18 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.17 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.16 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.15 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.14 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.13 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.12 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.11 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.10 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.9 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.8 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.7 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.6 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.5 installer/core/app/views/admin/users/show.html.haml
keppler-2.1.4 installer/core/app/views/admin/users/show.html.haml