Sha256: 8d1720b056aaeee7c6611ebdeb1913c4947e2db5e9eb41440354c5aa7f081335

Contents?: true

Size: 844 Bytes

Versions: 5

Compression:

Stored size: 844 Bytes

Contents

.row
  .col-md-2
  .col-md-8
    .panel.panel-default
      .panel-body
        %p.description
          %label Role:
          = entity.role ? entity.role.name : 'None'
        %p.description
          %label User:
          = entity.user ? entity.user.username : 'None'
        %p.description
          %label Verb:
          = entity.verb
        %p.description
          %label Pattern:
          = entity.pattern

        .row
          .col-md-6
            %a.btn.btn-default{ href: "/_proxes/permissions/#{entity.id}/edit" } Edit
          .col-md-6.text-right
            - if policy(entity).delete?
              %form{ method: 'post', action: "/_proxes/permissions/#{entity.id}" }
                %input{ name: '_method', value: 'DELETE', type: 'hidden' }
                %button.btn.btn-warning{ type: 'submit' } Delete
  .col-md-2

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
proxes-0.4.3 views/permissions/display.haml
proxes-0.4.2 views/permissions/display.haml
proxes-0.4.1 views/permissions/display.haml
proxes-0.4.0 views/permissions/display.haml
proxes-0.3.6 views/permissions/display.haml