This commit is contained in:
Francesco
2023-09-20 12:03:22 +02:00
parent 154bb1fcb8
commit 3d9de0246e
6 changed files with 77 additions and 137 deletions

View File

@@ -48,13 +48,24 @@
</a>
</th:block>
<th:block th:if="${!field.isPrimaryKey()}">
<span th:text="${object.get(field).getFormattedValue()}" th:if="${!field.isBinary()}">
</span>
<th:block th:if="${!field.isBinary()}">
<span th:if="${object.get(field).getFormattedValue() == null}" class="font-monospace null-label">
NULL
</span>
<span th:unless="${object.get(field).getFormattedValue() == null}"
th:text="${object.get(field).getFormattedValue()}">
</span>
</th:block>
<span th:unless="${!field.isBinary()}">
<th:block th:if="${object.get(field).getValue()}">
<a class="text-decoration-none null-label"
th:href="|/dbadmin/download/${schema.getJavaClass().getName()}/${field.getName()}/${object.get(schema.getPrimaryKey()).getValue()}|">
<i class="align-middle bi bi-box-arrow-down"></i><span class="align-middle"> Download</span>
<i class="align-middle bi bi-box-arrow-down"></i><span class="align-middle"> Download
<!--/*--> <span class="text-muted">([[ ${object.get(field).getValue().length} ]] bytes)</span> <!--*/-->
</span>
</a>
</th:block>
<th:block th:unless="${object.get(field).getValue()}">