@@ -88,7 +88,7 @@ <h3 class="text-center" th:text="#{t_collection_of(${ownerName})}">
88
88
/*/-->
89
89
90
90
< div class ="row ">
91
- < div class ="col-sm-2 col-md-push-4 ">
91
+ < div class ="col-sm-2 col-sm-offset-2 ">
92
92
< div class ="panel panel-default " th:if ="${not #lists.isEmpty(seriesOfCollection)} ">
93
93
< div class ="panel-heading ">
94
94
< h4 class ="panel-title " th:text ="#{t_in_collection} "> In this collection</ h4 >
@@ -110,48 +110,96 @@ <h4 class="panel-title" th:text="#{t_in_collection}">In this collection</h4>
110
110
</ div >
111
111
</ div >
112
112
</ div >
113
- < div class ="col-sm-3 col-md-push-4 ">
113
+ < div class ="col-sm-3 ">
114
114
< div class ="panel panel-default " th:if ="${not #lists.isEmpty(seriesOfCollection)} ">
115
115
< div class ="panel-heading ">
116
116
< h4 class ="panel-title " th:text ="#{t_stamps_by_countries} "> Stamps by countries</ h4 >
117
117
</ div >
118
118
< div id ="countries-chart " class ="panel-body no-padding "> </ div >
119
119
</ div >
120
120
</ div >
121
- < div class ="col-sm-3 col-md-push-4 ">
121
+ < div class ="col-sm-3 ">
122
122
< div class ="panel panel-default " th:if ="${not #lists.isEmpty(seriesOfCollection)} ">
123
123
< div class ="panel-heading ">
124
124
< h4 class ="panel-title " th:text ="#{t_stamps_by_categories} "> Stamps by categories</ h4 >
125
125
</ div >
126
126
< div id ="categories-chart " class ="panel-body no-padding "> </ div >
127
127
</ div >
128
128
</ div >
129
- < div class ="col-sm-4 col-md-pull-8 ">
130
- < ul th:if ="${not #lists.isEmpty(seriesOfCollection)} " th:remove ="all-but-first ">
131
- < li th:each ="series : ${seriesOfCollection} ">
129
+ </ div >
130
+
131
+ < div class ="row " th:if ="${not #lists.isEmpty(seriesOfCollection)} ">
132
+ < div class ="col-sm-12 ">
133
+
134
+ < div class ="image-gallery " th:remove ="all-but-first ">
135
+
136
+ < figure th:each ="series : ${seriesOfCollection} "
137
+ 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}__)' : ''}| ">
138
+
132
139
< a href ="../series/info.html " th:href ="@{${INFO_SERIES_PAGE}(id=${series.id})} ">
133
- < span th:remove ="tag " th:text ="|${series.category}, | "> Animals, </ span >
134
- < span th:remove ="tag " th:if ="${series.country != null} " th:text ="|${series.country}, | "> Italy, </ span >
135
- < span th:remove ="tag " th:if ="${series.releaseYear != null} " th:text ="|${series.releaseYear}, | "> 1999, </ span >
136
- < span th:remove ="tag " th:text ="|${series.quantity} ${series.quantity != 1 ? '__#{t_stamps}__' : '__#{t_stamp}__'}| "> 7 stamps</ span >
137
- < span th:remove ="tag " th:if ="${not series.perforated} " th:text ="|(#{t_wo_perforation_short})| "> (imperf.)</ span >
140
+ < img src ="http://via.placeholder.com/250 "
141
+ alt ="Prehistoric animals, Italy, 1999, 7 stamps (imperf.) "
142
+ title ="Prehistoric animals, Italy, 1999, 7 stamps (imperf.) "
143
+ th:alt ="${desc} "
144
+ th:title ="${desc} "
145
+ th:src ="@{${GET_IMAGE_PREVIEW_PAGE}(id=${series.previewId})} " />
146
+ </ a >
147
+ < figcaption >
148
+ < a href ="../series/info.html " th:href ="@{${INFO_SERIES_PAGE}(id=${series.id})} " th:text ="${desc} ">
149
+ Prehistoric animals, Italy, 1999, 7 stamps (imperf.)
150
+ </ a >
151
+ <!--/*/
152
+ <span class="label label-default"
153
+ th:if="${series.quantity != series.numberOfStamps}"
154
+ th:text="#{t_m_out_of_n(${series.numberOfStamps}, ${series.quantity})}"></span>
155
+ /*/-->
156
+ < span th:if ="${justAddedSeriesId != null and justAddedSeriesId == series.id and justAddedNumberOfStamps == series.NumberOfStamps} " class ="label label-success "> New</ span >
157
+ <!--/* @todo #1123 /collection/{slug}: show "New" badge only once */-->
158
+ <!--/* @todo #511 /collection/{slug}: wrap a long caption */-->
159
+ </ figcaption >
160
+ </ figure >
161
+ < figure >
162
+ < a href ="../series/info.html ">
163
+ < img src ="http://via.placeholder.com/250 " alt ="Prehistoric animals, Italy, 22 stamps " title ="Prehistoric animals, Italy, 22 stamps " />
164
+ </ a >
165
+ < figcaption > < a href ="../series/info.html "> Prehistoric animals, Italy, 22 stamps</ a > </ figcaption >
166
+ </ figure >
167
+ < figure >
168
+ < a href ="../series/info.html ">
169
+ < img src ="http://via.placeholder.com/250 " alt ="Cartoons, Italy, 2005, 5 stamps " title ="Cartoons, Italy, 2005, 5 stamps " />
138
170
</ a >
139
- <!--/*/
140
- <span class="label label-default"
141
- th:if="${series.quantity != series.numberOfStamps}"
142
- th:text="#{t_m_out_of_n(${series.numberOfStamps}, ${series.quantity})}"></span>
143
- /*/-->
144
- < span th:if ="${justAddedSeriesId != null and justAddedSeriesId == series.id and justAddedNumberOfStamps == series.NumberOfStamps} " class ="label label-success "> New</ span >
145
- <!--/* @todo #1123 /collection/{slug}: show "New" badge only once */-->
146
- </ li >
147
- < li >
148
- < a href ="../series/info.html "> Animals, Italy, 22 stamps</ a >
149
- < span class ="label label-default "> 20 out of 22</ span >
150
- </ li >
151
- < li >
152
- < a href ="../series/info.html "> Animals, Italy, 1983, 5 stamps</ a >
153
- </ li >
154
- </ ul >
171
+ < figcaption > < a href ="../series/info.html "> Cartoons, Italy, 2005, 5 stamps</ a > </ figcaption >
172
+ </ figure >
173
+ < figure >
174
+ < a href ="../series/info.html ">
175
+ < img src ="http://via.placeholder.com/250 " alt ="Prehistoric animals, Italy, 22 stamps " title ="Prehistoric animals, Italy, 22 stamps " />
176
+ </ a >
177
+ < figcaption >
178
+ < a href ="../series/info.html "> Prehistoric animals, Italy, 22 stamps</ a >
179
+ < span class ="label label-default "> 20 out of 22</ span >
180
+ </ figcaption >
181
+ </ figure >
182
+ < figure >
183
+ < a href ="../series/info.html ">
184
+ < img src ="http://via.placeholder.com/250 " alt ="Prehistoric animals, Italy, 1983, 5 stamps " title ="Prehistoric animals, Italy, 1983, 5 stamps " />
185
+ </ a >
186
+ < figcaption > < a href ="../series/info.html "> Prehistoric animals, Italy, 1983, 5 stamps</ a > </ figcaption >
187
+ </ figure >
188
+ < figure >
189
+ < a href ="../series/info.html ">
190
+ < img src ="http://via.placeholder.com/250 " alt ="Famous People, Italy, 2003, 4 stamps " title ="Famous People, Italy, 2003, 4 stamps " />
191
+ </ a >
192
+ < figcaption > < a href ="../series/info.html "> Famous People, Italy, 2003, 4 stamps</ a > </ figcaption >
193
+ </ figure >
194
+ < figure >
195
+ < a href ="../series/info.html ">
196
+ < img src ="http://via.placeholder.com/250 " alt ="Sport, Italy, 1996, 1 stamp " title ="Sport, Italy, 1996, 1 stamp " />
197
+ </ a >
198
+ < figcaption > < a href ="../series/info.html "> Sport, Italy, 1996, 1 stamp</ a > </ figcaption >
199
+ </ figure >
200
+
201
+ </ div >
202
+
155
203
</ div >
156
204
</ div >
157
205
</ div >
0 commit comments