Skip to content

Commit

Permalink
feat: show digest for OCI images in resources tab (#1973)
Browse files Browse the repository at this point in the history
  • Loading branch information
M7mdisk authored Aug 16, 2024
1 parent 4182518 commit 24401a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/details/resources.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ <h3 class="p-heading--5">Release history</h3>
<th>Date</th>
{% if resource.type == "file" %}
<th>Size</th>
{% else %}
<th>Digest</th>
{% endif %}
</tr>
</thead>
Expand All @@ -80,6 +82,8 @@ <h3 class="p-heading--5">Release history</h3>
<td>{{ revision.updated }}</td>
{% if resource.type == "file" %}
<td>{{ revision.size }}</td>
{% else %}
<td>{{ revision.download["hash-sha-256"][:12] }}</td>
{% endif %}
</tr>
{% endfor %}
Expand Down

0 comments on commit 24401a2

Please sign in to comment.