Sha256: d1722e6a3b234d6d906b1f1c8db8d79bccac9012aa847f4c4a6c59c2413c89c3
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
.row .col-md-12 = haml :'partials/search' %table.table.table-striped.table-bordered.table-hover %thead.thead-dark %tr %th= "Email #{sort_ui(:email)}" %th= "Name #{sort_ui(:name)}" %th= "Surname #{sort_ui(:surname)}" %th Roles %th= "Signed Up #{sort_ui(:created_at)}" %th %tbody - if list.count > 0 - list.all.each do |entity| %tr %td - if policy(entity).read? %a{ href: "#{base_path}/#{entity.display_id}" }= entity.email - else = entity.email %td= entity.name %td= entity.surname %td= entity.all_roles.map(&:name).map(&:titlecase).join(', ') %td= entity.created_at.strftime('%Y-%m-%d') %td - if policy(entity).update? %a{ href: "#{base_path}/#{entity.display_id}/edit", title: 'Edit' } %i.fa.fa-edit - else %tr %td.text-center{ colspan: 6 } No records - if list.count > 0 = pagination(list, base_path)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ditty-0.10.2 | views/users/index.haml |
ditty-0.10.1 | views/users/index.haml |