journalduhacker/app/views/invitations/index.html.erb
joshua stein 66f433176a add an invitiation request queue
the user tree is pretty big to look through now, so let users submit
a request for an invitation, which logged-in users can browse and
instantly send invites to
2013-10-18 15:49:20 -05:00

41 lines
1.2 KiB
Plaintext

<div class="box wide">
<div class="legend">
Requested Invitations
</div>
<p>
These persons have requested invitations and confirmed their e-mail
addresses. If you recognize anyone, feel free to send them an invitation and
remove their request. Spam will be cleared out by a moderator.
</p>
<table class="data" width="100%" cellspacing=0>
<tr>
<th width="20%">Date/Time</th>
<th width="15%">Name</th>
<th width="50%">Memo</th>
<th width="15%"></th>
</tr>
<% bit = 0 %>
<% @invitation_requests.each do |ir| %>
<tr class="row<%= bit %>">
<td><%= ir.created_at.strftime("%Y-%m-%d %H:%M:%S") %></td>
<td><%= ir.name %></td>
<td><%= ir.memo %></td>
<td><%= form_tag send_invitation_for_request_url, :confirm => "Are " <<
"you sure you want to invite this person and remove this request?" do %>
<%= hidden_field_tag "code", ir.code %>
<%= submit_tag "Send Invitiation" %>
<% end %></td>
</tr>
<% bit = (bit == 1 ? 0 : 1) %>
<% end %>
<% if @invitation_requests.count == 0 %>
<tr>
<td colspan=4 align="center"><span class="na">No invitation
requests</span></td>
</tr>
<% end %>
</table>
</div>