Sha256: ea1f7adeef7933eecc15c2d2c93d62f9d1e96f7f358f4ba2791b401bd92deafe

Contents?: true

Size: 1011 Bytes

Versions: 2

Compression:

Stored size: 1011 Bytes

Contents

<h2>Sent</h2>
<table>
	<tr>
		<th>Del?</th>
		<th>Subject</th>
		<th>To</th>
		<th>Sent</th>
	</tr>
	<%% if @<%= plural_lower_case_name %>.size == 0 %>
		<tr>
			<td colspan="4">
				No messages
			</td>
		</tr>
	<%% else %>
		<%% for <%= singular_lower_case_name %> in @<%= plural_lower_case_name %> %>
			<tr>
				<td><%%= check_box_tag "delete[]", <%= singular_lower_case_name %>.id %></td>
				<td><%%= link_to h(<%= singular_lower_case_name %>.subject), user_<%= singular_lower_case_name %>_path(@<%= singular_lower_case_parent %>, <%= singular_lower_case_name %>) %></td>
  			<td><%%= link_to h(<%= singular_lower_case_name %>.recipient.login), user_path(<%= singular_lower_case_name %>.recipient) %></td>
			  <td><%%=h <%= singular_lower_case_name %>.created_at.to_s(:long) %></td>
			</tr>
		<%% end %>
		<tr>
			<td colspan="4">
				<%%= submit_tag "Delete" %>
			</td>
		</tr>
 	<%% end %>
</table>
<%%= link_to "Inbox", user_<%= plural_lower_case_name %>_path(@<%= singular_lower_case_parent %>)%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
user_private_messages-1.0.1 lib/generators/user_private_messages/scaffold/templates/view_index_sent.html.erb
user_private_messages-1.0.0 lib/generators/simple_private_messages/scaffold/templates/view_index_sent.html.erb