From 6eb1141c17520c7f55bbaa1363fa531a9357f030 Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 26 May 2013 14:02:59 -0400 Subject: [PATCH] added message for empty directories --- resources/public/css/screen.css | 5 ++ src/blarg/views/templates/files/list.html | 58 +++++++++++++---------- 2 files changed, 37 insertions(+), 26 deletions(-) diff --git a/resources/public/css/screen.css b/resources/public/css/screen.css index dcb2319..8e21158 100644 --- a/resources/public/css/screen.css +++ b/resources/public/css/screen.css @@ -58,6 +58,11 @@ code, pre { width: 220px; } +div.file-list-container { + margin-top: 20px; + margin-bottom: 20px; +} + .center { float: none; margin-left: auto; diff --git a/src/blarg/views/templates/files/list.html b/src/blarg/views/templates/files/list.html index c9552f4..f920e8b 100644 --- a/src/blarg/views/templates/files/list.html +++ b/src/blarg/views/templates/files/list.html @@ -21,32 +21,38 @@
- - - - - - - - - - - {% for file in files %} - - - - - - - {% endfor %} - -
FilenameSizeLast Modified 
- {{file.filename}}
- {{file.content-type}} -
{{file.size}}{{file.last_modified|to_fulltime}} - Update - Delete -
+
+ {% ifempty not files %} + + + + + + + + + + + {% for file in files %} + + + + + + + {% endfor %} + +
FilenameSizeLast Modified 
+ {{file.filename}}
+ {{file.content-type}} +
{{file.size}}{{file.last_modified|to_fulltime}} + Update + Delete +
+ {% else %} +

No files found.

+ {% endifempty %} +