From 85be82a69d4943f5407e9f58b7cf60c636e2b6d2 Mon Sep 17 00:00:00 2001 From: master3395 Date: Mon, 19 Jan 2026 18:23:54 +0100 Subject: [PATCH] Fix Django template syntax error - use AngularJS delimiters for || operator --- userManagment/templates/userManagment/createUser.html | 4 ++-- .../templates/websiteFunctions/modifyWebsite.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/userManagment/templates/userManagment/createUser.html b/userManagment/templates/userManagment/createUser.html index cd79a58e6..1f861b882 100644 --- a/userManagment/templates/userManagment/createUser.html +++ b/userManagment/templates/userManagment/createUser.html @@ -353,8 +353,8 @@

{% trans "Choose the home directory for this user's files" %}

- {{selectedHomeDirectoryInfo.name}}: {{selectedHomeDirectoryInfo.description || 'No description available'}}
- Available Space: {{selectedHomeDirectoryInfo.available_space | filesize}} | Users: {{selectedHomeDirectoryInfo.user_count}} + {$ selectedHomeDirectoryInfo.name $}: {$ selectedHomeDirectoryInfo.description || 'No description available' $}
+ Available Space: {$ selectedHomeDirectoryInfo.available_space | filesize $} | Users: {$ selectedHomeDirectoryInfo.user_count $}
diff --git a/websiteFunctions/templates/websiteFunctions/modifyWebsite.html b/websiteFunctions/templates/websiteFunctions/modifyWebsite.html index 28eaa6fcf..b7ae3774f 100644 --- a/websiteFunctions/templates/websiteFunctions/modifyWebsite.html +++ b/websiteFunctions/templates/websiteFunctions/modifyWebsite.html @@ -482,7 +482,7 @@
{{selectedHomeDirectoryInfo.name}}
- {{selectedHomeDirectoryInfo.description || 'No description available'}}
+ {$ selectedHomeDirectoryInfo.description || 'No description available' $}
Available Space: {{selectedHomeDirectoryInfo.available_space | filesize}} | Users: {{selectedHomeDirectoryInfo.user_count}}