From 9589a7eadeb05e82c2d63f6fe128316fdb6dcc8a Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 19 Oct 2014 11:14:26 -0500 Subject: 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 --- templates/packages/files_list.html.jinja | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 templates/packages/files_list.html.jinja (limited to 'templates/packages/files_list.html.jinja') 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 %} +

Note: This file list was generated from a previous version +of the package; it may be out of date.

+{% endif %} +{% if pkg.files_last_update %} +{% if files|length %} + +{% else %} +

Package has no files.

+{% endif %} +{% else %} +

No file list available.

+{% endif %} -- cgit v1.2.3-2-g168b