#44 add check for papers

This commit is contained in:
T-Midnight 2019-05-12 23:27:19 +04:00
parent ff7f535980
commit c612e35ad9

View File

@ -11,6 +11,14 @@
<span class="h6" th:text="${grant.title}"/>
<span class="text-muted" th:text="${grant.authorsString}"/>
</a>
<a th:each="paper, rowStat : *{grant.papers}">
<span th:if="${paper.status.name() == 'COMPLETED'}">
<i class="fa fa-circle" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
<span th:unless="${paper.status.name() == 'COMPLETED'}">
<i class="fa fa-circle-o" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
</a>
<input class="id-class" type="hidden" th:value="${grant.id}"/>
<a class="remove-paper pull-right d-none" th:href="@{'/grants/delete/'+${grant.id}}"
data-confirm="Удалить грант?">