osem-fcy/app/views/admin/conference/_recent_users.html.haml

24 lines
649 B
Text
Raw Normal View History

- if recent_users && !recent_users.empty?
2014-06-16 13:51:43 +02:00
.table-responsive
%table.table
%thead
%tr
2014-06-16 13:51:43 +02:00
%th #
%th E-Mail
%th Date registered
%th Status
- recent_users.each_with_index do |user, index|
%tbody
%tr
2014-08-06 22:23:10 +03:00
%td= index + 1
%td= link_to user.email, admin_user_path(user.id)
%td= user.created_at.strftime('%m/%d/%Y')
2014-06-16 13:51:43 +02:00
%td
- if user.confirmed?
%span.label.label-success Confirmed
-else
%span.label.label-danger Unconfirmed
- else
%h5.text-warning.text-center
2014-06-23 19:07:50 +03:00
No sign ups!