|
@@ -50,47 +50,34 @@
|
|
|
</form>
|
|
|
|
|
|
<div class="asset-search-results">
|
|
|
- <ol class="asset-list moderation-list">
|
|
|
- <?php foreach($data['result'] as $i => $asset_edit) { ?>
|
|
|
- <li class="asset-item">
|
|
|
- <a href="<?php echo raw($basepath) . '/asset/edit/' . url($asset_edit['edit_id']) ?>" class="asset-header">
|
|
|
- <img class="media-object" src="<?php echo esc($asset_edit['icon_url']) ?>" alt="<?php echo esc($asset_edit['title']) ?>'s icon" width=80 height=80>
|
|
|
- <div class="asset-title">
|
|
|
- <h4><?php echo esc($asset_edit['title']) ?></h4>
|
|
|
- <div class="asset-tags-container">
|
|
|
- <div class="asset-tags">
|
|
|
- <span class="label label-info"><?php echo raw(ucfirst(str_replace('_', ' ', $asset_edit['godot_version']))) ?></span>
|
|
|
- <span class="label label-<?php echo raw([
|
|
|
- 'official' => 'danger',
|
|
|
- 'community' => 'success',
|
|
|
- 'testing' => 'default',
|
|
|
- ][$asset_edit['support_level']]) ?>"><?php echo raw(ucfirst($asset_edit['support_level'])) ?></span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="asset-tags-container asset-tags-moderation">
|
|
|
- <div class="asset-tags">
|
|
|
- <span class="label label-default"><?php echo raw($asset_edit['author']) ?></span>
|
|
|
- <span class="label label-<?php echo raw([
|
|
|
- 'new' => 'info',
|
|
|
- 'in_review' => 'primary',
|
|
|
- 'rejected' => 'danger',
|
|
|
- 'accepted' => 'success'
|
|
|
- ][$asset_edit['status']]) ?>"><?php echo raw(ucfirst(str_replace('_', ' ', $asset_edit['status']))) ?></span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </a>
|
|
|
- <?php if($asset_edit['status'] == 'rejected' && $asset_edit['reason']) { ?>
|
|
|
- <div class="asset-footer">
|
|
|
- <div>
|
|
|
- <span><b>Rejection reason:</b></span><br>
|
|
|
- <span><?php echo esc($asset_edit['reason']) ?></span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <?php } ?>
|
|
|
- </li>
|
|
|
- <?php } ?>
|
|
|
- </ol>
|
|
|
+ <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['result'] as $i => $asset_edit) { ?>
|
|
|
+ <?php $submit_date = new DateTime($asset_edit['submit_date']); $modify_date = new DateTime($asset_edit['modify_date']); ?>
|
|
|
+ <tr>
|
|
|
+ <td class="table-tags">
|
|
|
+ <span class="label label-<?php
|
|
|
+ echo raw(['new' => 'info', 'in_review' => 'primary', 'rejected' => 'danger', 'accepted' => 'success'][$asset_edit['status']]) ?>">
|
|
|
+ <?php echo raw(ucfirst(str_replace('_', ' ', $asset_edit['status']))) ?>
|
|
|
+ </span>
|
|
|
+ </td>
|
|
|
+ <td><?php echo ($asset_edit['asset_id'] == -1 ? 'Create ' : 'Edit ') ?></td>
|
|
|
+ <td><a href="<?php echo raw($basepath) . '/asset/edit/' . url($asset_edit['edit_id']) ?>"><?php echo esc($asset_edit['title']) ?></a></td>
|
|
|
+ <td><?php echo raw($submit_date->format("Y-m-d")) ?></td>
|
|
|
+ <td><?php echo ($asset_edit['status'] === 'new') ? 'Pending' : raw($modify_date->format("Y-m-d")) ?></td>
|
|
|
+ </tr>
|
|
|
+ <?php } ?>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
|
|
|
<?php include("_pagination.phtml") ?>
|
|
|
</div>
|