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/show.php

20 lines
752 B
PHP
Raw Normal View History

2013-10-27 01:06:58 +02:00
<div id="mail-show" class="mail">
<div id="previous-messages" style="display: none;">
</div>
<?= $this->partial("message", ['message' => $this->dmail]) ?>
<div style="width: 50em; display: none;" id="response">
<?= $this->partial("compose", ['from_id' => current_user()->id]) ?>
</div>
<?php $this->contentFor('footer', function(){ ?>
<li><?= $this->linkToFunction("Show conversation", "Dmail.expand(".($this->dmail->parent_id ?: $this->dmail->id).", ".$this->dmail->id.")") ?></li>
<?php if ($this->dmail->to_id == $this->current_user->id) : ?>
<li><?= $this->linkToFunction("Respond", "Dmail.respond('".$this->dmail->from->name."')") ?></li>
<?php endif ?>
<?php }) ?>
<?= $this->partial("footer") ?>
</div>