Skip to content

Commit

Permalink
Clean up utility template a little
Browse files Browse the repository at this point in the history
  • Loading branch information
Mosnar committed Nov 2, 2019
1 parent 47d56e7 commit 041cbf3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/templates/_components/utilities/CompressUtility_content.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,25 @@

{% set archives = craft.compress.archives() %}
<div class="readable">
<table class="data fullwidth fixed-layout">
<table class="data fullwidth collapsible">
<thead>
<tr>
<th>Archive ID</th>
<th>Asset</th>
<th>Date Created</th>
<th>Date Updated</th>
<th>Date Last Accessed</th>
</tr>
</thead>
<tbody>

{% for item in archives %}
<tr>
<td>{{ item.id }}</td>
<td>{% if item.getAsset() %}{{ item.getAsset().title }}{% else %}Not Ready{% endif %}</td>
<td>{{ item.dateCreated|date('d/m/Y H:i:s') }}</td>
<td>{{ item.dateUpdated|date('d/m/Y H:i:s') }}</td>
<td>{% if item.isReady() %}{{ item.asset.title }}{% else %}Not Ready{% endif %}</td>
<td>{{ item.dateCreated|date('short') }}</td>
<td>{{ item.dateUpdated|date('short') }}</td>
<td>{{ item.dateLastAccessed|date('short') }}</td>
</tr>
{% endfor %}
</tbody>
Expand Down

0 comments on commit 041cbf3

Please sign in to comment.