From 5fb2fca70a13181ae8aaec60e855693114b1198f Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 2 Apr 2010 17:53:33 -0500 Subject: Fix filelists AJAX replacement We were double nesting the filelist div. Have the AJAX call only return the contents and not the enclosing div. Signed-off-by: Dan McGee --- templates/packages/files-list.html | 22 ++++++++++------------ templates/packages/files.html | 2 ++ 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'templates/packages') diff --git a/templates/packages/files-list.html b/templates/packages/files-list.html index d26a11e9..dee18ecd 100644 --- a/templates/packages/files-list.html +++ b/templates/packages/files-list.html @@ -1,12 +1,10 @@ -
-

Files:

- {% if files.count %} -
    - {% for file in files %} -
  • {{ file.path }}
  • - {% endfor %} -
- {% else %} -

No filelist available.

- {% endif %} -
+

Files:

+{% if files.count %} + +{% else %} +

No filelist available.

+{% endif %} diff --git a/templates/packages/files.html b/templates/packages/files.html index e8a8facf..2f951062 100644 --- a/templates/packages/files.html +++ b/templates/packages/files.html @@ -6,7 +6,9 @@

Back to Package

+
{% include "packages/files-list.html" %} +
{% endblock %} -- cgit v1.2.3-2-g168b