Files
godot-asset-library/templates/feed.phtml
2023-06-20 19:31:35 +02:00

30 lines
1.3 KiB
PHTML

<?php include("_header.phtml") ?>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th scope="col">Status</th>
<th scope="col">Type</th>
<th scope="col">Asset Name</th>
<th scope="col">Submit Date</th>
<th scope="col">Revision Date</th>
</tr>
</thead>
<tbody>
<?php foreach($data['events'] as $i => $event) { ?>
<tr>
<td class="table-tags">
<span class="label label-<?php
echo raw(['new' => 'info', 'in_review' => 'primary', 'rejected' => 'danger', 'accepted' => 'success'][$event['status']]) ?>">
<?php echo raw(ucfirst(str_replace('_', ' ', $event['status']))) ?>
</span>
</td>
<td><?php echo ($event['asset_id'] == -1 ? 'Create ' : 'Edit ') ?></td>
<td><a href="<?php echo raw($basepath) . '/asset/edit/' . url($event['edit_id']) ?>"><?php echo esc($event['title']) ?></a></td>
<td><?php echo raw($event['submit_date']) ?></td>
<td><?php echo ($event['status'] === 'new') ? 'Pending' : raw($event['modify_date']) ?></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php include("_footer.phtml") ?>