Skip to content

Commit

Permalink
Merge pull request #625 from spacious-team/feature-gh-584-no_security…
Browse files Browse the repository at this point in the history
…_icon

Отображать события по дивидендам, купонам и другим начислениям, где не указана ценная бумага
  • Loading branch information
vananiev authored Nov 18, 2024
2 parents 6f4fde5 + 36d2dbc commit 06f78a3
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/main/resources/templates/events/table.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
body {
max-width: 95%;
}

.no-security a:hover {
text-decoration: none;
}
</style>
</head>
<body>
Expand Down Expand Up @@ -61,6 +65,7 @@ <h1>События по счетам</h1>
<th>Валюта</th>
<th>Описание</th>
<th></th>
<th></th>
</tr>
<tr th:each="e : ${page.content}">
<td th:text="${e.portfolio}"/>
Expand All @@ -82,20 +87,29 @@ <h1>События по счетам</h1>
<td th:text="${(e.value != null) ? e.value.setScale(2, T(java.math.RoundingMode).HALF_UP) : ''}" class="value"/>
<td th:text="${e.valueCurrency}"/>
<td th:text="${e.description}"/>
<td class="no-security">
<a th:if="${e.type.name == 'DIVIDEND' ||
e.type.name == 'COUPON' ||
e.type.name == 'AMORTIZATION' ||
e.type.name == 'REDEMPTION' ||
e.type.name == 'DERIVATIVE_PROFIT' ||
e.type.name == 'TAX'}"
th:href="@{/events/edit-form(id=${e.id})}" title="Не указана ценная бумага">&#x1F4F0;</a>
</td>
<td class="table-row-control">
<a th:href="@{/events/delete(id=${e.id})}" title="Удалить">&#x274c;</a>
</td>
</tr>
</table>

<div th:insert="~{fragments/navigation :: navigation-bar (
<div th:insert="~{fragments/navigation :: navigation-bar (
endpoint='events',
params='portfolio=${filter.portfolio},
dateFrom=${filter.dateFrom},
dateTo=${filter.dateTo},
pageSize=${filter.pageSize}'
)}">
</div>
</div>

</body>
</html>

0 comments on commit 06f78a3

Please sign in to comment.