osem-fcy/app/views/admin/conferences/_recent_users.html.haml
Ana María Martínez Gómez f64cd7323f
Do not use readonly checkboxes to render information
Just render `Yes` or `No` instead of a disabled checkbox with these two
options in the recent users section of conference#index.
2019-05-31 00:24:14 +02:00

20 lines
540 B
Text

- if recent_users && !recent_users.empty?
.table-responsive
%table.table
%thead
%tr
%th #
%th E-Mail
%th Date registered
%th Confirmed?
- recent_users.each_with_index do |user, index|
%tbody
%tr
%td= index + 1
%td= link_to user.email, admin_user_path(user.id)
%td= user.created_at.strftime('%m/%d/%Y')
%td
= user.confirmed? ? 'Yes' : 'No'
- else
%h5.text-warning.text-center
No sign ups!