Skip to content

Commit

Permalink
#21 Styleing the table
Browse files Browse the repository at this point in the history
  • Loading branch information
baardl committed Nov 13, 2023
1 parent 814adab commit 749ab65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ protected List<Map<String, Object>> buildList(List<MappedSensorId> sensors) {
sensorDetail.put("type", sensorId.getClass().getSimpleName());
sensorDetail.put("sensorId", sensorId.getId());
sensorDetail.put("mappingKey", sensor.getSensorId().getMappingKey().getKey().toString());
sensorDetail.put("shouldbenull", null);
if (sensor.getSensorId() instanceof DesigoSensorId) {
sensorDetail.put("desigoId", ((DesigoSensorId) sensorId).getDesigoId());
sensorDetail.put("desigoPropertyId", ((DesigoSensorId) sensorId).getDesigoPropertyId());
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/templates/RepositoryStatus.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ <h2 th:text="${count} + ' Sensors'"/>
<table style="border: solid 1px black;">
<thead>
<tr>
<th>SensorId</th><th>TrendId</th><th>Type</th>
<th>SensorId</th><th>TrendId</th><th>Type</th><th>MappingKey</th>
</tr>
</thead>
<th:block th:each="sensorDetail : ${sensorList}">
<tr>
<td th:text="${sensorDetail.sensorId}"/>
<td th:text="${sensorDetail.trendId}"/>
<td th:text="${sensorDetail.type}"/>
<td th:text="${sensorDetail.mappingKey}"/>
</tr>
</th:block>
</table>
Expand All @@ -37,6 +38,7 @@ <h3>Details</h3>
<td th:text="${property.key}"/>
<td th:text="${property.value}"/>
</tr>
<tr><td colspan="2">----</td></tr>
</th:block>
</table>
</div>
Expand Down

0 comments on commit 749ab65

Please sign in to comment.