#44 replace paper status fragment

This commit is contained in:
T-Midnight 2019-05-14 23:46:15 +04:00
parent 8747ac1619
commit 8c13adb4aa

View File

@ -12,30 +12,7 @@
<span class="text-muted" th:text="${grant.authorsString}"/>
</a>
<span th:each="paper, rowStat : *{grant.papers}">
<th:block th:switch="${paper.status.name()}">
<span th:case="'ATTENTION'">
<i class="fa fa-circle text-warning" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
<span th:case="'DRAFT'">
<i class="fa fa-circle text-draft" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
<span th:case="'ON_PREPARATION'">
<i class="fa fa-circle text-primary" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
<span th:case="'ON_REVIEW'">
<i class="fa fa-circle text-review" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
<span th:case="'ACCEPTED'">
<i class="fa fa-circle text-success" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
<span th:case="'NOT_ACCEPTED'">
<i class="fa fa-circle text-not-accepted" aria-hidden="true"
th:title="'Статья: ' + ${paper.title}"></i>
</span>
<span th:case="'FAILED'">
<i class="fa fa-circle text-failed" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
</th:block>
<span th:replace="papers/fragments/paperStatusFragment :: paperStatus(paperStatus=${paper.status}, title=${paper.title})"/>
</span>
<input class="id-class" type="hidden" th:value="${grant.id}"/>
<a class="remove-paper pull-right d-none" th:href="@{'/grants/delete/'+${grant.id}}"