osem-fcy/app/views/admin/conference/_recent_users.html.haml
2014-08-21 08:00:28 +03:00

23 lines
654 B
Text

- if recent_users && !recent_users.empty?
.table-responsive
%table.table
%thead
%tr
%th #
%th E-Mail
%th Date registered
%th Status
- recent_users.each_with_index do |user, index|
%tbody
%tr
%td #{index}
%td= link_to "#{user.email}", admin_user_path(user.id)
%td #{user.created_at.strftime('%m/%d/%Y')}
%td
- if user.confirmed?
%span.label.label-success Confirmed
-else
%span.label.label-danger Unconfirmed
- else
%h5.text-warning.text-center
No sign ups!