Sha256: 110f946a4350460e0d9984e666c895d6d643ecb5ab0312f6551dcde084908b64

Contents?: true

Size: 726 Bytes

Versions: 8

Compression:

Stored size: 726 Bytes

Contents

.row
  .col-md-12
    .panel.panel-default
      %table.table.table-striped
        %thead
          %tr
            %th Role
            %th User
            %th Permission
        %tbody
          -list.each do |entity|
            %tr
              %td
                = entity.role ? entity.role.name : 'None'
              %td
                = entity.user ? entity.user.username : 'None'
              %td
                %a.btn-block{ href: "#{base_path}/#{entity.id}" }
                  = entity.verb
                  = entity.pattern
      - if policy(::ProxES::Permission).create?
        .panel-body.text-right
          %a.btn.btn-primary{ href: "#{base_path}/new" } New Permission

=pagination(list, base_path)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
proxes-0.7.1 views/permissions/index.haml
proxes-0.7.0 views/permissions/index.haml
proxes-0.6.1 views/permissions/index.haml
proxes-0.6.0 views/permissions/index.haml
proxes-0.5.2 views/permissions/index.haml
proxes-0.5.1 views/permissions/index.haml
proxes-0.5.0 views/permissions/index.haml
proxes-0.4.4 views/permissions/index.haml