osem-fcy/app/views/admin/conference/_recent_users.html.haml
2014-06-30 15:46:06 +03:00

23 lines
617 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 #{user.email}
%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!