Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/includes/directory-display.html
{% comment %} | {% comment %} | ||||
Copyright (C) 2017-2020 The Software Heritage developers | Copyright (C) 2017-2021 The Software Heritage developers | ||||
See the AUTHORS file at the top-level directory of this distribution | See the AUTHORS file at the top-level directory of this distribution | ||||
License: GNU Affero General Public License version 3, or any later version | License: GNU Affero General Public License version 3, or any later version | ||||
See top-level LICENSE file for more information | See top-level LICENSE file for more information | ||||
{% endcomment %} | {% endcomment %} | ||||
{% if not iframe_mode %} | |||||
{% include "includes/revision-info.html" %} | {% include "includes/revision-info.html" %} | ||||
{% endif %} | |||||
{% if snapshot_context and snapshot_context.is_empty %} | {% if snapshot_context and snapshot_context.is_empty %} | ||||
{% include "includes/empty-snapshot.html" %} | {% include "includes/empty-snapshot.html" %} | ||||
{% elif dirs|length > 0 or files|length > 0 %} | {% elif dirs|length > 0 or files|length > 0 %} | ||||
<div class="table-responsive"> | <div class="table-responsive"> | ||||
<table class="table swh-table swh-directory-table"> | <table class="table swh-table swh-directory-table"> | ||||
<thead> | <thead> | ||||
<tr> | <tr> | ||||
Show All 31 Lines | <table class="table swh-table swh-directory-table"> | ||||
<td class="d-none d-sm-table-cell"> | <td class="d-none d-sm-table-cell"> | ||||
{{ f.length }} | {{ f.length }} | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
{% endfor %} | {% endfor %} | ||||
</tbody> | </tbody> | ||||
</table> | </table> | ||||
</div> | </div> | ||||
{% if not iframe_mode %} | |||||
<hr class="mt-0 mb-2"> | <hr class="mt-0 mb-2"> | ||||
{% endif %} | |||||
{% elif "revision_found" in swh_object_metadata and swh_object_metadata.revision_found is False %} | {% 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> | <i>Revision {{ swh_object_metadata.revision }} could not be found in the archive.</i> | ||||
<br/> | <br/> | ||||
<i>Its associated directory can not be displayed.</i> | <i>Its associated directory can not be displayed.</i> | ||||
{% elif error_code != 200 %} | {% elif error_code != 200 %} | ||||
{% include "includes/http-error.html" %} | {% include "includes/http-error.html" %} | ||||
{% elif dirs|length == 0 and files|length == 0 %} | {% elif dirs|length == 0 and files|length == 0 %} | ||||
<i>Directory is empty</i> | <i>Directory is empty</i> | ||||
{% endif %} | {% endif %} |