mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 04:26:22 +05:30
Fix views reset problem. See #618
This commit is contained in:
parent
71e2f00fa9
commit
23c4427300
7 changed files with 34 additions and 71 deletions
|
|
@ -12,19 +12,7 @@
|
|||
<th><?php echo i18n('Tags');?></th>
|
||||
<th><?php echo i18n('Operations');?></th>
|
||||
</tr>
|
||||
<?php $i = 0;
|
||||
$len = count($posts); ?>
|
||||
<?php foreach ($posts as $p): ?>
|
||||
<?php
|
||||
if ($i == 0) {
|
||||
$class = 'item first';
|
||||
} elseif ($i == $len - 1) {
|
||||
$class = 'item last';
|
||||
} else {
|
||||
$class = 'item';
|
||||
}
|
||||
$i++;
|
||||
?>
|
||||
<tr class="<?php echo $class ?>">
|
||||
<td><?php echo $p->title ?></td>
|
||||
<td><?php echo format_date($p->date, 'd F Y, H:i:s') ?></td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue