This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/app/views/dmail/_message.php

16 lines
675 B
PHP
Raw Normal View History

2013-10-27 01:06:58 +02:00
<div class="message">
<?php if ($this->message->to_id == current_user()->id) : ?>
<h5 class="received"><?= $this->h($this->message->title()) ?></h5>
<?php else: ?>
<h5 class="sent"><?= $this->h($this->message->title()) ?></h5>
<?php endif ?>
<div style="margin-bottom: 1em;">
<em><?= $this->t(['.sent_by_html', 'user' => $this->linkTo($this->message->from->name, ['controller' => "user", 'action' => "show", 'id' => $this->message->from_id]), 'x_ago' => $this->t(['time.x_ago', 't' => $this->timeAgoInWords($this->message->created_at)])]) ?></em>
</div>
<div style="width: 50em;">
<?= $this->format_text($this->message->body) ?>
</div>
</div>