= $html->link_to("« Back to Messages",
array("controller" => "messages")); ?>
= $html->link_to(h($message->author->username),
array("controller" => "users", "action" => "show",
"id" => $message->author->username)); ?>
= $html->link_to(h($message->recipient->username),
array("controller" => "users", "action" => "show",
"id" => $message->recipient->username)); ?>
= $message->created_at->format("D, j F Y \\a\\t H:i:s"); ?>
if ($message->item) { ?>
= $html->link_to(h($message->subject),
array("controller" => "items", "action" => "show",
"id" => $message->item_id)); ?>
} else { ?>
= h($message->subject); ?>
} ?>
= $message->sanitized_body(); ?>
Send a
Reply
= $html->error_messages_for($reply); ?>
$form->form_for($reply, array("controller" => "messages",
"action" => "reply", "id" => $message->random_hash), array(), function($f) use
($html, $controller) { ?>
= $f->label("recipient_user_id", "To:", array("class" => "required")); ?>
= $html->link_to(h($controller->message->recipient->username),
array("controller" => "users", "action" => "show", "id" =>
$controller->message->recipient->username)); ?>
= $f->label("subject", "Subject:", array("class" => "required")); ?>
= h($controller->reply->subject); ?>
= $f->text_area("body", array("size" => "70x5")); ?>
= $f->submit_tag("Send Reply"); ?>
}); ?>