This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<body th:replace="~{fragments :: base(title=${'Build ' + build.getName()}, content=~{::content})}">
|
||||
<div th:fragment="content">
|
||||
<ul>
|
||||
<li><b>Name: </b><span th:text="${build.name}"></span></li>
|
||||
<li><b>Description: </b><span th:text="${build.description}"></span></li>
|
||||
<li><b>Part Count: </b><span th:text="${build.getParts()?.size() ?: 0}"></span></li>
|
||||
<li><b>Total RAM: </b><span th:text="${buildInfo.getTotalRamCapacity().getCapacityInUnit()} + ' ' + ${buildInfo.getTotalRamCapacity().getIdealUnit().displayName}"></span></li>
|
||||
</ul>
|
||||
<table border="1" cellpadding="4">
|
||||
<tr bgcolor="#d3d3d3">
|
||||
<th>QR</th>
|
||||
<th>Type</th>
|
||||
<th>Brand</th>
|
||||
<th>Model</th>
|
||||
</tr>
|
||||
<tr th:each="p : ${build.getParts()}">
|
||||
<td><a th:href="'/view/' + ${p.qr}" th:text="${p.qr}"></a></td>
|
||||
<td th:text="${descriptors.getDescriptorForType(p.type).displayName}"></td>
|
||||
<td th:text="${descriptors.getGenericProperty('brand').renderValue(p)}"></td>
|
||||
<td th:text="${descriptors.getGenericProperty('model').renderValue(p)}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
Reference in New Issue
Block a user