summaryrefslogtreecommitdiff
path: root/templates/packages/files-ajax.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-27 10:08:04 -0600
committerDan McGee <dan@archlinux.org>2010-02-27 13:36:58 -0600
commit8314777c5858b8f9dd954ef906e19de1322a61d0 (patch)
treeb4ba12ced99c71ea844a05396abc9d4b64793223 /templates/packages/files-ajax.html
parent1cea5fc32e5fe213137cac0323d27bcc9cbc7d8b (diff)
Make files view AJAX if supported
This will put the filelist inline on the package details page if using a capable browser. It should still fallback to a separate page if necessary (e.g. all those users using links on the site). Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/files-ajax.html')
-rw-r--r--templates/packages/files-ajax.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/packages/files-ajax.html b/templates/packages/files-ajax.html
new file mode 100644
index 00000000..9b4c83ad
--- /dev/null
+++ b/templates/packages/files-ajax.html
@@ -0,0 +1,8 @@
+<div class="listing" id="filelist">
+ <h4>Files:</h4>
+ <ul style="font-size:small;list-style:none">
+ {% for file in files %}
+ <li>{{ file.path }}</li>
+ {% endfor %}
+ </ul>
+</div>