-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathinfo.html
258 lines (242 loc) · 10.9 KB
/
info.html
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html lang="en" th:lang="${#locale.language == 'ru' ? 'ru' : 'en'}"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title th:text="|#{t_my_stamps}: #{t_collection_of(${ownerName})}|">My stamps: John Doe's collection</title>
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" th:href="${FAVICON_ICO}" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" th:href="${BOOTSTRAP_CSS}" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/usrz/bootstrap-languages@3ac2a3d2b27ac43a471cd99e79d378a03b2c6b5f/languages.min.css" th:href="${BOOTSTRAP_LANGUAGE}" />
<link rel="stylesheet" href="../../static/styles/main.css" th:href="${MAIN_CSS}" />
</head>
<body>
<div class="container-fluid">
<div class="row" id="header">
<div id="logo" class="col-sm-9 vcenter">
<a href="../site/index.html" th:href="'/'" th:text="#{t_my_stamps}">My stamps</a>
</div><!--
--><div class="col-sm-1 vcenter"
th:with="lang=${#locale.language == 'en' ? 'ru' : 'en'},langName=${#locale.language == 'en' ? 'Русский' : 'English'}">
<span class="lang-xs" lang="ru"
th:lang="${lang}"></span>
<a href="javascript:void(0)" hreflang="ru"
th:href="|?lang=${lang}|" th:hreflang="${lang}" th:text="${langName}">Русский</a>
</div><!--
--><div id="user_bar" class="col-sm-2 vcenter">
<ul class="list-unstyled">
<!--/*/
<li sec:authorize="isAuthenticated()">
<i class="glyphicon glyphicon-user"></i>
<a sec:authentication="principal.userName"
href="../collection/info.html"
title="Open my collection"
th:title="#{t_open_my_collection}"
th:href="@{${INFO_COLLECTION_PAGE}(slug=${#authentication.principal.userCollectionSlug})}">
John Doe
</a>
</li>
/*/-->
<li sec:authorize="isAnonymous()">
<a href="../account/auth.html" th:href="@{${AUTHENTICATION_PAGE}}" th:text="#{t_enter}">Sign in</a>
</li>
<!--/*/
<li sec:authorize="isAuthenticated()">
<form id="logout-form" method="get" action="../site/index.html" class="no-margin" th:method="post" th:action="@{${LOGOUT_PAGE}}">
<i class="glyphicon glyphicon-share"></i> <input type="submit" value="Sign out" class="btn btn-link no-padding" th:value="#{t_logout}" />
</form>
</li>
/*/-->
<li sec:authorize="isAnonymous()">
<a href="../account/register.html" th:href="@{${REGISTRATION_PAGE}}" th:text="#{t_register}">Register</a>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<h3 class="text-center" th:text="#{t_collection_of(${ownerName})}">
John Doe's collection
</h3>
<!--/*/
<div class="row" th:if="${justAddedSeries}">
<div class="alert alert-success text-center col-sm-4 col-sm-offset-4" th:text="#{t_collection_just_added}">
Series has been added to your collection
</div>
</div>
/*/-->
<!--/*/
<div class="row" th:if="${justRemovedSeries}">
<div class="alert alert-info text-center col-sm-4 col-sm-offset-4" th:text="#{t_collection_just_removed}">
Series has been removed from your collection
</div>
</div>
/*/-->
<!--/*/
<p class="text-center" th:if="${#lists.isEmpty(seriesOfCollection)}" th:text="#{t_empty_collection}">
In this collection is no stamps
</p>
/*/-->
<div class="row" th:if="${not #lists.isEmpty(seriesOfCollection)}">
<div class="col-sm-2 col-sm-offset-2">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title" th:text="#{t_in_collection}">In this collection</h4>
</div>
<div class="panel-body">
<p th:text="|#{t_categories_amount}: ${categoryCounter}|">Amount of categories: 1</p>
<p th:text="|#{t_countries_amount}: ${countryCounter}|">Amount of countries: 1</p>
<p th:text="|#{t_series_amount}: ${seriesCounter}|">Amount of series: 3</p>
<p th:text="|#{t_stamps_amount}: ${stampsCounter}|">Amount of stamps: 34</p>
<!--/* @todo #892 Add integration tests for showing a link to collection estimation page */-->
<p sec:authorize="hasAuthority('ADD_SERIES_PRICE')">
<span th:text="#{t_cost}">The cost</span>:
<a href="estimation.html"
th:href="@{${ESTIMATION_COLLECTION_PAGE}(slug=${slug})}"
th:text="#{t_how_much}">
how much?
</a>
</p>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title" th:text="#{t_stamps_by_countries}">Stamps by countries</h4>
</div>
<div id="countries-chart" class="panel-body no-padding"></div>
</div>
</div>
<div class="col-sm-3">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title" th:text="#{t_stamps_by_categories}">Stamps by categories</h4>
</div>
<div id="categories-chart" class="panel-body no-padding"></div>
</div>
</div>
</div>
<div class="row" th:if="${not #lists.isEmpty(seriesOfCollection)}">
<div class="col-sm-12">
<div class="image-gallery" th:remove="all-but-first">
<figure th:each="series : ${seriesOfCollection}"
th:with="desc=|${series.category}, ${series.country != null ? series.country + ', ' : ''}${series.releaseYear != null ? series.releaseYear + ', ' : ''}${series.quantity} ${series.quantity != 1 ? '__#{t_stamps}__' : '__#{t_stamp}__'}${not series.perforated ? ' (__#{t_wo_perforation_short}__)' : ''}|">
<a href="../series/info.html" th:href="@{${INFO_SERIES_PAGE}(id=${series.id})}">
<img src="http://via.placeholder.com/250"
alt="Prehistoric animals, Italy, 1999, 7 stamps (imperf.)"
title="Prehistoric animals, Italy, 1999, 7 stamps (imperf.)"
th:alt="${desc}"
th:title="${desc}"
th:src="@{${GET_IMAGE_PREVIEW_PAGE}(id=${series.previewId})}" />
</a>
<figcaption>
<a href="../series/info.html" th:href="@{${INFO_SERIES_PAGE}(id=${series.id})}" th:text="${desc}">
Prehistoric animals, Italy, 1999, 7 stamps (imperf.)
</a>
<!--/*/
<span class="label label-default"
th:if="${series.quantity != series.numberOfStamps}"
th:text="#{t_m_out_of_n(${series.numberOfStamps}, ${series.quantity})}"></span>
/*/-->
<span th:if="${justAddedSeriesId != null and justAddedSeriesId == series.id and justAddedNumberOfStamps == series.NumberOfStamps}" class="label label-success">New</span>
<!--/* @todo #1123 /collection/{slug}: show "New" badge only once */-->
<!--/* @todo #511 /collection/{slug}: wrap a long caption */-->
</figcaption>
</figure>
<figure>
<a href="../series/info.html">
<img src="http://via.placeholder.com/250" alt="Prehistoric animals, Italy, 22 stamps" title="Prehistoric animals, Italy, 22 stamps" />
</a>
<figcaption><a href="../series/info.html">Prehistoric animals, Italy, 22 stamps</a></figcaption>
</figure>
<figure>
<a href="../series/info.html">
<img src="http://via.placeholder.com/250" alt="Cartoons, Italy, 2005, 5 stamps" title="Cartoons, Italy, 2005, 5 stamps" />
</a>
<figcaption><a href="../series/info.html">Cartoons, Italy, 2005, 5 stamps</a></figcaption>
</figure>
<figure>
<a href="../series/info.html">
<img src="http://via.placeholder.com/250" alt="Prehistoric animals, Italy, 22 stamps" title="Prehistoric animals, Italy, 22 stamps" />
</a>
<figcaption>
<a href="../series/info.html">Prehistoric animals, Italy, 22 stamps</a>
<span class="label label-default">20 out of 22</span>
</figcaption>
</figure>
<figure>
<a href="../series/info.html">
<img src="http://via.placeholder.com/250" alt="Prehistoric animals, Italy, 1983, 5 stamps" title="Prehistoric animals, Italy, 1983, 5 stamps" />
</a>
<figcaption><a href="../series/info.html">Prehistoric animals, Italy, 1983, 5 stamps</a></figcaption>
</figure>
<figure>
<a href="../series/info.html">
<img src="http://via.placeholder.com/250" alt="Famous People, Italy, 2003, 4 stamps" title="Famous People, Italy, 2003, 4 stamps" />
</a>
<figcaption><a href="../series/info.html">Famous People, Italy, 2003, 4 stamps</a></figcaption>
</figure>
<figure>
<a href="../series/info.html">
<img src="http://via.placeholder.com/250" alt="Sport, Italy, 1996, 1 stamp" title="Sport, Italy, 1996, 1 stamp" />
</a>
<figcaption><a href="../series/info.html">Sport, Italy, 1996, 1 stamp</a></figcaption>
</figure>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<footer class="col-sm-12 text-right">
<i class="glyphicon glyphicon-envelope"></i>
<a href="mailto:[email protected]" title="Write e-mail" th:href="|mailto:#{t_site_author_email}|" th:title="#{t_write_email}" th:text="#{t_site_author_name}">Slava Semushin</a>, 2009-2020
</footer>
</div>
</div>
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://yandex.st/jquery/1.9.1/jquery.min.js" th:src="${JQUERY_JS}"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" th:src="${BOOTSTRAP_JS}"></script>
<!--/*/
<th:block th:if="${not #lists.isEmpty(seriesOfCollection)}">
/*/-->
<!-- Charts -->
<script src="https://www.gstatic.com/charts/loader.js"></script>
<script src="../../../../javascript/collection/info.js" th:src="${COLLECTION_INFO_JS}"></script>
<script th:inline="javascript">
$(document).ready(function() {
/*[+
initPage(
[[${statOfCollectionByCategories}]],
[[${statOfCollectionByCountries}]]
);
+]*/
/*[- */
initPage({
'Animals': 94,
'Prehistoric animals': 37,
'Sport': 1
}, {
'Russia': 5,
'USA': 2,
'Australia': 11,
'Canada': 3,
'Sahrawi Arab Democratic Republic': 2,
'China': 1,
'Congo': 20,
'Brazil': 4,
'Korea': 2
}
);
/* -]*/
});
</script>
<!--/*/
</th:block>
/*/-->
</body>
</html>