Created
June 27, 2014 14:25
-
-
Save Rosa-Fox/7623ad656085aee45245 to your computer and use it in GitHub Desktop.
View
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%nav.navbar.navbar-default | |
.container-fluid | |
.navbar-header | |
%span.navbar-brand | |
=link_to 'Users', admin_users_path | |
| | |
=link_to 'Invitations', admin_invitations_path | |
.collapse.navbar-collapse | |
.navbar-right | |
= link_to 'Log out', admin_session_path, method: 'delete', class: 'btn btn-sm btn-default navbar-btn' | |
.row | |
.col-md-1 | |
.col-md-5 | |
%h1.text-left Invitations | |
.row | |
.col-md-1 | |
.col-md-5 | |
= link_to 'New Invitation', new_admin_invitation_path | |
.row | |
.col-md-1 | |
.col-md-9 | |
%h3 Pending Invitations | |
.text-muted Sent invitations that have yet to expire or be redeemed | |
%table.table.table-striped | |
%thead | |
%tr | |
%th Email | |
%th Workshops | |
%th Sent at | |
%th Expired at | |
%tbody | |
- @invitation.each do |invitation| | |
- if invitation.redeemable? | |
%tr | |
%td | |
= invitation.email | |
%td | |
= invitation.workshop_ids.join(', ') | |
%td | |
= invitation.created_at | |
%td | |
= invitation.expired_at | |
.row | |
.col-md-1 | |
.col-md-9 | |
%h3 Expired Invitations | |
.text-muted Invitations that expired without being redeemed | |
%table.table.table-striped | |
%thead | |
%tr | |
%th Email | |
%th Workshops | |
%th Sent at | |
%th Expired at | |
%tbody | |
- @invitation.each do |invitation| | |
- if invitation.expired? && !invitation.redeemed? | |
%tr | |
%td | |
= invitation.email | |
%td | |
= invitation.workshop_ids.join(', ') | |
%td | |
= invitation.created_at | |
%td | |
= invitation.expired_at | |
.row | |
.col-md-1 | |
.col-md-9 | |
%h3 Redeemed Invitations | |
.text-muted Invitations that were redeemed before they were expired | |
%table.table.table-striped | |
%thead | |
%tr | |
%th Email | |
%th Workshops | |
%th Sent at | |
%th Created at | |
%th Redeemed at | |
%tbody | |
- @invitation.each do |invitation| | |
- if invitation.redeemed? && !invitation.expired? | |
%tr | |
%td | |
= link_to invitation.email, edit_admin_user_path(invitation.user_id) | |
%td | |
= invitation.workshop_ids.join(', ') | |
%td | |
= invitation.created_at | |
%td | |
= invitation.expired_at |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment