29 lines
1.4 KiB
HTML
29 lines
1.4 KiB
HTML
<!DOCTYPE HTML>
|
|
<html xmlns:th="http://www.thymeleaf.org">
|
|
<head th:fragment="headerfiles">
|
|
<meta charset="UTF-8"/>
|
|
</head>
|
|
<body>
|
|
<div th:fragment="grantLine (grant)" class="row text-left grant-row" style="background-color: white;">
|
|
<div class="col">
|
|
<span th:replace="grants/fragments/grantStatusFragment :: grantStatus(grantStatus=${grant.status})"/>
|
|
<a th:href="@{'grant?id='+${grant.id}}">
|
|
<span class="h6" th:if="${#strings.length(grant.title) > 50}"
|
|
th:text="${#strings.substring(grant.title, 0, 50)} + '...'" th:title="${grant.title}"/>
|
|
<span class="h6" th:if="${#strings.length(grant.title) le 50}" th:text="${grant.title}"
|
|
th:title="${grant.title}"/>
|
|
<span class="text-muted" th:text="${grant.authorsString}"/>
|
|
</a>
|
|
<span th:each="paper, rowStat : *{grant.papers}">
|
|
<span th:replace="papers/fragments/paperStatusFragment :: paperStatus(paperStatus=${paper.status},
|
|
title=${paper.title}, small=true)"/>
|
|
</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}}"
|
|
data-confirm="Удалить грант?">
|
|
<i class="fa fa-trash" aria-hidden="true"></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |