Skip to content

Commit

Permalink
tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Goulven.Furet authored and Goulven.Furet committed Oct 19, 2023
1 parent 029e0d0 commit ec544b0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
19 changes: 9 additions & 10 deletions ui/src/main/resources/templates/inc/product-attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@
<div class="card-body">
<table class="table table-hover">
<tbody>
<tr th:each="item : ${product.attributes.aggregatedAttributes.values()}">



<th scope="row" th:text="${item.name}"></th>
<th:block th:switch="${item.name}">
<td th:case="'REPAIRABILITY_INDEX'" th:insert="~{inc/attributes/class_energy.html}"> </td>
<td th:case="*" th:text="${item.value}"></td>
</th:block>
</tr>
<th:block th:each="item : ${product.attributes.aggregatedAttributes.values()}">
<tr data-bs-toggle="tooltip" data-bs-placement="top" th:title="#{attribute.sourcing(${item.sourcesCount()}, ${item.distinctValues()-1})}">
<th class="help-pointer" scope="row" th:text="${item.name}"></th>
<th:block th:switch="${item.name}">
<td class="help-pointer" th:case="'REPAIRABILITY_INDEX'" th:insert="~{inc/attributes/class_energy.html}"> </td>
<td class="help-pointer" th:case="*" th:text="${item.value}"></td>
</th:block>
</tr>
</th:block>
</tbody>
</table>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@


<th:block th:with="sourcesCount = ${attr.sourcesCount()}, conflicts = ${attr.hasConflicts()}">
<tr th:class="${attr.bgRow()}" data-bs-toggle="tooltip" data-bs-placement="top" th:title="#{attribute.sourcing(${sourcesCount}, ${attr.distinctValues()})}">
<td><span th:text="${attr.name}"></span></td>
<td><span th:text="${attr.value}"></span> </td>
<tr th:class="${attr.bgRow()}" data-bs-toggle="tooltip" data-bs-placement="top" th:title="#{attribute.sourcing(${sourcesCount}, ${attr.distinctValues()-1})}">
<td class="help-pointer"><span th:text="${attr.name}"></span></td>
<td class="help-pointer"><span th:text="${attr.value}"></span> </td>
</tr>
</th:block>

Expand Down

0 comments on commit ec544b0

Please sign in to comment.