Sha256: c86c23e87e5a791eae9f2cd7755e9f94f551f807b672a817cd891625e5e372cd

Contents?: true

Size: 1.71 KB

Versions: 6

Compression:

Stored size: 1.71 KB

Contents

.row
  .col-md-2
  .col-md-8
    .panel.panel-default
      .panel-body
        .author
          %img.pull-right.thumbnail{ src: entity.gravatar }
          %h4= entity.email

        %hr
        %p.description
          %label Name:
          = entity.name
        %p.description
          %label Surname:
          = entity.surname
        %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-default{ href: "#{base_path}/#{entity.id}/edit" } Edit
          .col-md-6.text-right
            - if policy(entity).delete?
              %form{ method: 'post', action: "#{base_path}/#{entity.id}" }
                %input{ name: '_method', value: 'DELETE', type: 'hidden' }
                %button.btn.btn-warning{ type: 'submit' } Delete
  .col-md-2

- if entity.identity.first
  .row
    .col-md-2
    .col-md-8
      .panel.panel-default
        .panel-heading
          %h4 Change Password
        .panel-body
          %form.form-horizontal{ method: 'post', action: "#{base_path}/#{entity.id}/identity" }
            %input{ name: '_method', value: 'PUT', type: 'hidden' }
            = 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


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ditty-0.6.0 views/users/display.haml
ditty-0.4.1 views/users/display.haml
ditty-0.4.0 views/users/display.haml
ditty-0.3.3 views/users/display.haml
ditty-0.3.2 views/users/display.haml
ditty-0.3.1 views/users/display.haml