diff --git a/swh/web/templates/includes/directory-display.html b/swh/web/templates/includes/directory-display.html index bb6ee32f2..9e185abe6 100644 --- a/swh/web/templates/includes/directory-display.html +++ b/swh/web/templates/includes/directory-display.html @@ -1,69 +1,69 @@ {% comment %} Copyright (C) 2017-2018 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 %} {% if snapshot_context and snapshot_context.is_empty %} {% include "includes/empty-snapshot.html" %} {% elif dirs|length > 0 or files|length > 0 %}
{% for d in dirs %} {% endfor %} {% for f in files %} {% endfor %}
File Mode Size
+ - {{ d.name }} {{ d.perms }}
+ - {{ f.name }} {{ f.perms }} {{ f.length }}

{% elif dirs|length == 0 and files|length == 0 %} Directory is empty {% endif %} \ No newline at end of file