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/post/deleted_index.php

37 lines
1.3 KiB
PHP
Raw Normal View History

2013-10-27 01:06:58 +02:00
<h4><?= $this->t('.title') ?></h4>
<table width="100%" class="highlightable">
<thead>
<tr>
<!-- <th width="5%">Resolved</th> -->
<th width="5%"><?= $this->t('.post') ?></th>
<th width="10%"><?= $this->t('.user') ?></th>
<th width="45%"><?= $this->t('.tags') ?></th>
<th width="35%"><?= $this->t('.reason') ?></th>
<?php if (current_user()->is_mod_or_higher()) : ?>
<th width="1*"><?= $this->t('.by') ?></th>
<?php endif ?>
</tr>
</thead>
<tbody>
<?php foreach ($this->posts as $post) : ?>
<tr class="<?= $this->cycle('even', 'odd') ?>">
<!-- <td><?= $post->flag_detail->is_resolved ? 'Yes' : 'No' ?></td> -->
<td><?= $this->linkTo($post->id, ['action' => 'show', 'id' => $post->id]) ?></td>
<td><?= $this->linkTo($this->h($post->author()), ['user#show', 'id' => $post->user_id]) ?></td>
2013-11-03 16:31:27 +01:00
<td><?= $this->h($post->cached_tags) ?></td>
2013-10-27 01:06:58 +02:00
<td><?= $this->h($post->flag_detail->reason) ?></td>
<?php if (current_user()->is_mod_or_higher()) : ?>
<td><?= $this->linkTo($this->h($post->flag_detail->author()), ['user#show', 'id' => $post->flag_detail->user_id]) ?></td>
<?php endif ?>
</tr>
<?php endforeach ?>
</tbody>
</table>
<div id="paginator">
<?= $this->willPaginate($this->posts) ?>
</div>
<?= $this->partial('footer') ?>