diff options
author | Dan McGee <dan@archlinux.org> | 2011-12-03 20:29:06 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-12-03 20:29:06 +0100 |
commit | ae00d10ff48a604e9cc9dd327046661e52ff2749 (patch) | |
tree | 05868392624178a28a179ff501b458d1e7e0eb7c /templates/packages/files_list.html | |
parent | 546012c8e0d9e757e4670dd14e41acb83eb4e997 (diff) | |
download | archweb-ae00d10ff48a604e9cc9dd327046661e52ff2749.tar.gz archweb-ae00d10ff48a604e9cc9dd327046661e52ff2749.tar.xz |
Rename files list template for consistency
We use underscores in all other templates.
Also remove some of the generated whitespace in the template which is
noticeable in very large package lists.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/files_list.html')
-rw-r--r-- | templates/packages/files_list.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/packages/files_list.html b/templates/packages/files_list.html new file mode 100644 index 0000000..156d858 --- /dev/null +++ b/templates/packages/files_list.html @@ -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>{{ 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 %} |