diff options
author | Dan McGee <dan@archlinux.org> | 2014-10-19 11:14:26 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-10-19 11:14:26 -0500 |
commit | 9589a7eadeb05e82c2d63f6fe128316fdb6dcc8a (patch) | |
tree | 885425a13442c8c747fcf5c987330c96777c73d0 /templates/packages/files_list.html | |
parent | e16ae46a2f1f84f0841f175fa14a8a858f3b3cd1 (diff) |
Convert package files view to Jinja2
This is another one we spend a lot of time rendering, and packges like
sage-mathematics with 80,000+ files can really make the Django template
engine grind.
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, 0 insertions, 16 deletions
diff --git a/templates/packages/files_list.html b/templates/packages/files_list.html deleted file mode 100644 index 93a2c847..00000000 --- a/templates/packages/files_list.html +++ /dev/null @@ -1,16 +0,0 @@ -{% 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 %} |