Are you sure you want to remove this directory from the file server?
+
+ {% load humanize %}
+ {{ directory.path }} contains {{ num_files|intcomma }} files.
diff --git a/simple_viewer/settings.py b/simple_viewer/settings.py index a412387..95d91ed 100644 --- a/simple_viewer/settings.py +++ b/simple_viewer/settings.py @@ -38,6 +38,7 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + 'django.contrib.humanize' ] MIDDLEWARE = [ diff --git a/viewer/static/theme.css b/viewer/static/theme.css index 6d881ce..d366922 100644 --- a/viewer/static/theme.css +++ b/viewer/static/theme.css @@ -136,3 +136,8 @@ a.card-footer-item:hover { .delete-icon .icon { color: #d63b3b; } + +code { + background-color: #bcf6ff; + color: #033343; +} diff --git a/viewer/templates/delete.html b/viewer/templates/delete.html index a4f5d1f..c045259 100644 --- a/viewer/templates/delete.html +++ b/viewer/templates/delete.html @@ -27,6 +27,9 @@
Are you sure you want to remove this directory from the file server?
+
+ {% load humanize %}
+ {{ directory.path }} contains {{ num_files|intcomma }} files.