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/wiki/index.php
2013-10-26 18:06:58 -05:00

23 lines
771 B
PHP
Executable File

<div style="margin-bottom: 1em;">
<?= $this->partial("sidebar") ?>
<table width="70%" class="highlightable">
<tr>
<th width="70%">Title</th>
<th width="30%">Last edited</th>
</tr>
<?php foreach($this->wiki_pages as $wiki_page) : ?>
<tr class="<?= $this->cycle('even', 'odd') ?>">
<td><?= $this->linkTo($this->h($wiki_page->pretty_title()), ['controller' => "wiki", 'action' => "show", 'title' => $wiki_page->title, 'nordirect' => 1]) ?></td>
<td><?= date("m/d h:i", strtotime($wiki_page->updated_at)) ?> by <?= $this->h($wiki_page->author()) ?></td>
</tr>
<?php endforeach ?>
</table>
<div id="paginator">
<?= $this->willPaginate($this->wiki_pages) ?>
</div>
</div>
<?= $this->partial("footer") ?>