Sha256: f3b56a59e48e61ef65a3f46627cae6b2cb18af145baed1c119cabdb2a82b6b84

Contents?: true

Size: 663 Bytes

Versions: 6

Compression:

Stored size: 663 Bytes

Contents

.row
  .col-md-12
    .panel.panel-default
      %table.table.table-striped
        %thead
          %tr
            %th Email
            %th Name
            %th Surname
            %th Roles
        %tbody
          - list.all.each do |entity|
            %tr
              %td
                %a{ href: "#{base_path}/#{entity.id}" }= entity.email
              %td= entity.name
              %td= entity.surname
              %td= entity.roles_dataset.map(:name).map(&:titlecase).join(', ')
      - if policy(::Ditty::User).create?
        .panel-body.text-right
          %a.btn.btn-primary{ href: "#{base_path}/new" } New User

=pagination(list, base_path)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ditty-0.3.2 views/users/index.haml
ditty-0.3.1 views/users/index.haml
ditty-0.3.0 views/users/index.haml
ditty-0.2.2 views/users/index.haml
ditty-0.2.1 views/users/index.haml
ditty-0.2.0 views/users/index.haml