Fix Django template syntax error - use AngularJS delimiters for || operator

This commit is contained in:
master3395
2026-01-19 18:23:54 +01:00
parent 5a181e9389
commit 85be82a69d
2 changed files with 3 additions and 3 deletions

View File

@@ -353,8 +353,8 @@
</select>
<p class="help-text">{% trans "Choose the home directory for this user's files" %}</p>
<div ng-show="selectedHomeDirectoryInfo" class="alert alert-info" style="margin-top: 10px;">
<strong>{{selectedHomeDirectoryInfo.name}}:</strong> {{selectedHomeDirectoryInfo.description || 'No description available'}}<br>
<small>Available Space: {{selectedHomeDirectoryInfo.available_space | filesize}} | Users: {{selectedHomeDirectoryInfo.user_count}}</small>
<strong>{$ selectedHomeDirectoryInfo.name $}:</strong> {$ selectedHomeDirectoryInfo.description || 'No description available' $}<br>
<small>Available Space: {$ selectedHomeDirectoryInfo.available_space | filesize $} | Users: {$ selectedHomeDirectoryInfo.user_count $}</small>
</div>
</div>

View File

@@ -482,7 +482,7 @@
<div class="info-box-content">
<div class="info-box-title">{{selectedHomeDirectoryInfo.name}}</div>
<div class="info-box-text">
{{selectedHomeDirectoryInfo.description || 'No description available'}}<br>
{$ selectedHomeDirectoryInfo.description || 'No description available' $}<br>
<small>Available Space: {{selectedHomeDirectoryInfo.available_space | filesize}} | Users: {{selectedHomeDirectoryInfo.user_count}}</small>
</div>
</div>