36 lines
1.5 KiB
HTML

<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head th:fragment="headerfiles">
<meta charset="UTF-8"/>
</head>
<body>
<div th:fragment="paperLine (paper)" class="text-left paper-row" style="background-color: white;">
<div class="row">
<div class="col-1 d-flex justify-content-center">
<span th:replace="papers/fragments/paperStatusFragment :: paperStatus(paperStatus=${paper.status}, title=${paper.title}, small=false)"/>
</div>
<div class="col-10">
<a th:href="@{'../papers/paper?id='+${paper.id}}">
<span class="h6" th:if="${#strings.length(paper.title)} > 100"
th:text="${#strings.substring(paper.title, 0, 100) + ' ...'}" th:title="${paper.title}"/>
<span class="h6" th:if="${#strings.length(paper.title) le 100}" th:text="${paper.title}"
th:title="${paper.title}"/>
</a>
</div>
<div class="col-1 d-flex justify-content-center">
<input class="id-class" type="hidden" th:value="${paper.id}"/>
<a class="remove-paper pull-right d-none" href="#" data-confirm="Удалить статью?">
<i class="fa fa-trash fa-2x" aria-hidden="true"></i>
</a>
</div>
</div>
<div class="row">
<div class="col-1">
</div>
<div class="col-10">
<span class="text-muted" th:text="${paper.authorsString}"/>
</div>
</div>
</div>
</body>
</html>