Sha256: 50aa1b9d7db09d94a6624c295e6e9bb6821bd22096baecb0bdf69b28e22a4979

Contents?: true

Size: 1.68 KB

Versions: 3

Compression:

Stored size: 1.68 KB

Contents

.row.mb-4
  .col-md-2
  .col-md-8
    .card.card-default.shadow
      .card-body
        .author
          %img.float-right.img-thumbnail{ src: entity.gravatar }
          %h4= entity.display_name

        %hr
        %p.description
          %label Name:
          = entity.name || '(None)'
        %p.description
          %label Surname:
          = entity.surname || '(None)'
        %p.description
          %label Roles:
          = entity.roles_dataset.map(:name).map(&:titlecase).join(', ')
        %p.description
          %label Signed up:
          = entity.created_at.strftime('%Y-%m-%d %H:%M:%S')

        .row
          .col-md-6
            - if policy(entity).update?
              %a.btn.btn-secondary{ href: "#{base_path}/#{entity.display_id}/edit" } Edit
          .col-md-6.text-right
            - if policy(entity).delete?
              = delete_form_tag("#{base_path}/#{entity.display_id}") do
                %button.btn.btn-warning{ type: 'submit' } Delete
  .col-md-2

- if entity.identity.first
  .row.mb-4
    .col-md-2
    .col-md-8
      .card.card-default.shadow
        .card-body
          %h4.card-title Change Password
          = edit_form_tag("#{base_path}/#{entity.display_id}/identity") do
            = form_control(:password, entity.identity.first, type: 'password', placeholder: 'Your password', group: 'identity')
            = form_control(:password_confirmation, entity.identity.first, type: 'password', label: 'Confirm Password', placeholder: 'Confirm your password', group: 'identity')
            %button.btn.btn-primary{ type: 'submit' }
              Change Password
    .col-md-2

= haml :'users/login_traits', locals: { user_login_traits: entity.user_login_traits }

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ditty-0.11.1 views/users/display.haml
ditty-0.10.2 views/users/display.haml
ditty-0.10.1 views/users/display.haml