Sha256: 26c7681d4c34044f45ce4f6db25b6e1a9514b70d354afac2a2124f8910135415

Contents?: true

Size: 952 Bytes

Versions: 2

Compression:

Stored size: 952 Bytes

Contents

<p><strong>From:</strong> <%%= @<%= singular_lower_case_name %>.sender == @user ? link_to("You", user_path(@user)) : link_to(h(@<%= singular_lower_case_name %>.sender.login), user_path(@<%= singular_lower_case_name%>.sender)) %></p>
<p><strong>Received:</strong> <%%= @<%= singular_lower_case_name %>.created_at.to_s(:long) %></p>
<p><strong>To:</strong> <%%= @<%= singular_lower_case_name %>.recipient == @user ? link_to("You", user_path(@user)) : link_to(h(@<%= singular_lower_case_name %>.recipient.login), user_path(@<%= singular_lower_case_name %>.recipient)) %></p>
<p>
  <strong>Message</strong><br />
  <%%=h @<%= singular_lower_case_name %>.body %>
</p>
<p>
  <%% if @<%= singular_lower_case_name %>.recipient == @user %>
	  <%%= link_to "Reply", new_user_<%= singular_lower_case_name %>_path(@user, :reply_to => @<%= singular_lower_case_name %>) %> |
  <%% end %>
  <%%= link_to "Inbox", user_<%= plural_lower_case_name %>_path(@user)%>
</p>

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_show.html.erb
user_private_messages-1.0.0 lib/generators/simple_private_messages/scaffold/templates/view_show.html.erb