-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubjects.html
More file actions
71 lines (64 loc) · 2.6 KB
/
subjects.html
File metadata and controls
71 lines (64 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
>
<head>
<meta charset="UTF-8">
<link href="/theme/simple/static/favicon.ico" rel="icon">
<!-- Bootstrap CSS -->
<link href="/theme/simple/static/lib/bootstrap-5.0.2/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<title>Ikaros Subjects</title>
<style>
.ik-anime-list {
margin: 0;
width: 100%;
}
.ik-anime-overview {
height: 10rem;
overflow: hidden;
}
</style>
</head>
<body>
<br />
<nav aria-label="Page navigation example">
<ul class="pagination justify-content-center">
<li class="page-item">
<a class="page-link" th:href="'/subject/list?size=8&type=ANIME&page=' + ${pagingWarp.page - 1}" aria-label="上一页">
<span aria-hidden="true">«</span>
</a>
</li>
<li th:each="index:${#numbers.sequence(0, (pagingWarp.total / pagingWarp.size))}" class="page-item">
<a class="page-link" th:href="'/subject/list?size=8&type=ANIME&page=' + ${index + 1}" ><span th:text="${index + 1}"></span></a>
</li>
<li class="page-item">
<a class="page-link" th:href="'/subject/list?size=8&type=ANIME&page=' + ${pagingWarp.page + 1}" aria-label="下一页">
<span aria-hidden="true">»</span>
</a>
</li>
</ul>
</nav>
<div>
<div style="text-align:center">
<p th:if="${pagingWarp.items.isEmpty()}">没有更多数据</p>
</div>
<div class="container">
<div class="row align-items-start">
<div th:each="subject: ${pagingWarp.items}" class="card col-xl-3 col-lg-3 col-md-6 col-sm-12">
<img th:src="${subject.cover}" class="card-img-top" th:alt="${subject.name}">
<div class="card-body">
<h5 class="card-title" th:text="${subject.name}">Subject name</h5>
<p class="card-text ik-anime-overview" th:text="${subject.summary}">Subject summary</p>
<a th:href="@{/subject/{id}(id=${subject.id}, group='MAIN', episode=1.0)}" class="btn btn-primary">前往条目详情</a>
</div>
</div>
</div>
</div>
</div>
<!-- <script th:inline="javascript">-->
<!-- const animeList = [[${animeList}]]-->
<!-- console.log(animeList)-->
<!-- console.log(animeList.length)-->
<!-- </script>-->
<script src="/theme/simple/static/lib/bootstrap-5.0.2/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
</body>
</html>