summaryrefslogtreecommitdiff
path: root/templates/packages/files_list.html.jinja
diff options
context:
space:
mode:
Diffstat (limited to 'templates/packages/files_list.html.jinja')
-rw-r--r--templates/packages/files_list.html.jinja16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/packages/files_list.html.jinja b/templates/packages/files_list.html.jinja
new file mode 100644
index 00000000..c8fc3b1a
--- /dev/null
+++ b/templates/packages/files_list.html.jinja
@@ -0,0 +1,16 @@
+{% if pkg.last_update > pkg.files_last_update %}
+<p class="message">Note: This file list was generated from a previous version
+of the package; it may be out of date.</p>
+{% endif %}
+{% if pkg.files_last_update %}
+{% if files|length %}
+<ul>
+{% for file in files %}
+<li class="{% if file.is_directory %}d{% else %}f{% endif %}">{{ file.directory }}{{ file.filename|default('') }}</li>{% endfor %}
+</ul>
+{% else %}
+<p class="message">Package has no files.</p>
+{% endif %}
+{% else %}
+<p class="message">No file list available.</p>
+{% endif %}