summaryrefslogtreecommitdiff
path: root/templates/packages/files_list.html.jinja
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-13 20:25:24 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-04-13 20:25:24 -0400
commitc266efc7fc73f94995bffcdf8e0ef7a4aeb563c3 (patch)
tree2b96d2ff0f7e0a0d164a28b152b51fbb2f87b76f /templates/packages/files_list.html.jinja
parentea00a099dffd7157c93af54b5817734348d2bbc6 (diff)
parent9589a7eadeb05e82c2d63f6fe128316fdb6dcc8a (diff)
Merge tag 'release_2014-10-19' into archweb-generic
Jinja2 switch for some templates, exact matches in package search
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 %}