Enhance asset display by linking builds and handling null builds in overview
All checks were successful
Build / build (push) Successful in 1m23s
All checks were successful
Build / build (push) Successful in 1m23s
This commit is contained in:
@@ -9,7 +9,8 @@
|
|||||||
<tr th:each="a : ${assets}">
|
<tr th:each="a : ${assets}">
|
||||||
<td th:each="p : ${properties}" th:if="${!p.hideInOverview}">
|
<td th:each="p : ${properties}" th:if="${!p.hideInOverview}">
|
||||||
<a th:if="${p.name == 'qr'}" th:href="'/view/'+${a.getQr()}" th:text="${p.renderValue(a)}"></a>
|
<a th:if="${p.name == 'qr'}" th:href="'/view/'+${a.getQr()}" th:text="${p.renderValue(a)}"></a>
|
||||||
<span th:if="${p.name != 'qr'}" th:text="${p.renderValue(a)}"></span>
|
<a th:if="${p.name == 'build' && a.getAsset().getBuild() != null}" th:href="'/build/'+${a.getAsset().getBuild().getId()}" th:text="${p.renderValue(a)}"></a>
|
||||||
|
<span th:if="${p.name != 'qr' && (p.name != 'build' || a.getAsset().getBuild() == null)}" th:text="${p.renderValue(a)}"></span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a th:href="'/view/'+${a.getQr()}">View</a>
|
<a th:href="'/view/'+${a.getQr()}">View</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user