Skip to content

Commit 041cbf3

Browse files
committed
Clean up utility template a little
1 parent 47d56e7 commit 041cbf3

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/templates/_components/utilities/CompressUtility_content.twig

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,25 @@
22

33
{% set archives = craft.compress.archives() %}
44
<div class="readable">
5-
<table class="data fullwidth fixed-layout">
5+
<table class="data fullwidth collapsible">
66
<thead>
77
<tr>
88
<th>Archive ID</th>
99
<th>Asset</th>
1010
<th>Date Created</th>
1111
<th>Date Updated</th>
12+
<th>Date Last Accessed</th>
1213
</tr>
1314
</thead>
1415
<tbody>
1516

1617
{% for item in archives %}
1718
<tr>
1819
<td>{{ item.id }}</td>
19-
<td>{% if item.getAsset() %}{{ item.getAsset().title }}{% else %}Not Ready{% endif %}</td>
20-
<td>{{ item.dateCreated|date('d/m/Y H:i:s') }}</td>
21-
<td>{{ item.dateUpdated|date('d/m/Y H:i:s') }}</td>
20+
<td>{% if item.isReady() %}{{ item.asset.title }}{% else %}Not Ready{% endif %}</td>
21+
<td>{{ item.dateCreated|date('short') }}</td>
22+
<td>{{ item.dateUpdated|date('short') }}</td>
23+
<td>{{ item.dateLastAccessed|date('short') }}</td>
2224
</tr>
2325
{% endfor %}
2426
</tbody>

0 commit comments

Comments
 (0)