Page MenuHomeSoftware Heritage

No OneTemporary

diff --git a/swh/web/templates/includes/directory-display.html b/swh/web/templates/includes/directory-display.html
index ca23558d..37949966 100644
--- a/swh/web/templates/includes/directory-display.html
+++ b/swh/web/templates/includes/directory-display.html
@@ -1,64 +1,63 @@
{% comment %}
Copyright (C) 2017-2020 The Software Heritage developers
See the AUTHORS file at the top-level directory of this distribution
License: GNU Affero General Public License version 3, or any later version
See top-level LICENSE file for more information
{% endcomment %}
{% include "includes/revision-info.html" %}
{% if snapshot_context and snapshot_context.is_empty %}
{% include "includes/empty-snapshot.html" %}
{% elif dirs|length > 0 or files|length > 0 %}
<div class="table-responsive">
<table class="table swh-table swh-directory-table">
<thead>
<tr>
<th>File</th>
<th class="d-none d-md-table-cell">Mode</th>
<th class="d-none d-sm-table-cell">Size</th>
</tr>
</thead>
<tbody>
{% for d in dirs %}
<tr class="swh-directory-entry swh-tr-hover-highlight">
<td class="swh-directory">
<i class="{{ swh_object_icons.directory }} mdi-fw" aria-hidden="true"></i>
<a href="{{ d.url | safe }}">
{{ d.name }}
</a>
</td>
<td class="d-none d-md-table-cell">
- {{ d.perms }}
</td>
<td class="d-none d-sm-table-cell">
</td>
</tr>
{% endfor %}
{% for f in files %}
<tr class="swh-directory-entry swh-tr-hover-highlight">
<td class="swh-content">
<i class="{{ swh_object_icons.content }} mdi-fw" aria-hidden="true"></i>
<a href="{{ f.url | safe }}">
{{ f.name }}
</a>
</td>
<td class="d-none d-md-table-cell">
{{ f.perms }}
</td>
<td class="d-none d-sm-table-cell">
{{ f.length }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<hr class="mt-0 mb-2">
{% elif "revision_found" in swh_object_metadata and swh_object_metadata.revision_found is False %}
<i>Revision {{ swh_object_metadata.revision }} could not be found in the archive.</i>
<br/>
<i>Its associated directory can not be displayed.</i>
{% elif dirs|length == 0 and files|length == 0 %}
<i>Directory is empty</i>
{% endif %}

File Metadata

Mime Type
text/x-diff
Expires
Jul 4 2025, 7:14 PM (6 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3435445

Event Timeline