Skip to content

Commit 0838eed

Browse files
committed
feat(/collection/{slug}): show a list of series at the end on small devices.
See this article also: https://web3canvas.com/re-order-columns-in-mobile-devices-using-bootstrap-3/ Fix #981
1 parent e1484ee commit 0838eed

File tree

1 file changed

+29
-29
lines changed
  • src/main/webapp/WEB-INF/views/collection

1 file changed

+29
-29
lines changed

src/main/webapp/WEB-INF/views/collection/info.html

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -89,33 +89,7 @@ <h3 class="text-center" th:text="#{t_collection_of(${ownerName})}">
8989
/*/-->
9090

9191
<div class="row">
92-
<div class="col-sm-4">
93-
<ul th:if="${not #lists.isEmpty(seriesOfCollection)}" th:remove="all-but-first">
94-
<li th:each="series : ${seriesOfCollection}">
95-
<a href="../series/info.html" th:href="@{${INFO_SERIES_PAGE}(id=${series.id})}">
96-
<span th:remove="tag" th:text="|${series.category}, |">Animals, </span>
97-
<span th:remove="tag" th:if="${series.country != null}" th:text="|${series.country}, |">Italy, </span>
98-
<span th:remove="tag" th:if="${series.releaseYear != null}" th:text="|${series.releaseYear}, |">1999, </span>
99-
<span th:remove="tag" th:text="|${series.quantity}&nbsp;${series.quantity != 1 ? '__#{t_stamps}__' : '__#{t_stamp}__'}|">7&nbsp;stamps</span>
100-
<span th:remove="tag" th:if="${not series.perforated}" th:text="|(#{t_wo_perforation_short})|">(without perforation)</span>
101-
</a>
102-
<!--/*/
103-
<span class="label label-default"
104-
th:if="${series.quantity != series.numberOfStamps}"
105-
th:text="#{t_m_out_of_n(${series.numberOfStamps}, ${series.quantity})}"></span>
106-
/*/-->
107-
<span th:if="${justAddedSeriesId != null and justAddedSeriesId == series.id}" class="label label-success">New</span>
108-
</li>
109-
<li>
110-
<a href="../category/info.html">Animals, Italy, 22&nbsp;stamps</a>
111-
<span class="label label-default">20 out of 22</span>
112-
</li>
113-
<li>
114-
<a href="../category/info.html">Animals, Italy, 1983, 5&nbsp;stamps</a>
115-
</li>
116-
</ul>
117-
</div>
118-
<div class="col-sm-2">
92+
<div class="col-sm-2 col-md-push-4">
11993
<!--/*/
12094
<th:block togglz:active="SHOW_COLLECTION_STATISTICS" th:if="${not #lists.isEmpty(seriesOfCollection)}">
12195
/*/-->
@@ -134,22 +108,48 @@ <h4 class="panel-title" th:text="#{t_in_collection}">In this collection</h4>
134108
</th:block>
135109
/*/-->
136110
</div>
137-
<div class="col-sm-3">
111+
<div class="col-sm-3 col-md-push-4">
138112
<div class="panel panel-default" togglz:active="SHOW_COLLECTION_CHARTS" th:if="${not #lists.isEmpty(seriesOfCollection)}">
139113
<div class="panel-heading">
140114
<h4 class="panel-title" th:text="#{t_stamps_by_countries}">Stamps by countries</h4>
141115
</div>
142116
<div id="countries-chart" class="panel-body no-padding"></div>
143117
</div>
144118
</div>
145-
<div class="col-sm-3">
119+
<div class="col-sm-3 col-md-push-4">
146120
<div class="panel panel-default" togglz:active="SHOW_COLLECTION_CHARTS" th:if="${not #lists.isEmpty(seriesOfCollection)}">
147121
<div class="panel-heading">
148122
<h4 class="panel-title" th:text="#{t_stamps_by_categories}">Stamps by categories</h4>
149123
</div>
150124
<div id="categories-chart" class="panel-body no-padding"></div>
151125
</div>
152126
</div>
127+
<div class="col-sm-4 col-md-pull-8">
128+
<ul th:if="${not #lists.isEmpty(seriesOfCollection)}" th:remove="all-but-first">
129+
<li th:each="series : ${seriesOfCollection}">
130+
<a href="../series/info.html" th:href="@{${INFO_SERIES_PAGE}(id=${series.id})}">
131+
<span th:remove="tag" th:text="|${series.category}, |">Animals, </span>
132+
<span th:remove="tag" th:if="${series.country != null}" th:text="|${series.country}, |">Italy, </span>
133+
<span th:remove="tag" th:if="${series.releaseYear != null}" th:text="|${series.releaseYear}, |">1999, </span>
134+
<span th:remove="tag" th:text="|${series.quantity}&nbsp;${series.quantity != 1 ? '__#{t_stamps}__' : '__#{t_stamp}__'}|">7&nbsp;stamps</span>
135+
<span th:remove="tag" th:if="${not series.perforated}" th:text="|(#{t_wo_perforation_short})|">(without perforation)</span>
136+
</a>
137+
<!--/*/
138+
<span class="label label-default"
139+
th:if="${series.quantity != series.numberOfStamps}"
140+
th:text="#{t_m_out_of_n(${series.numberOfStamps}, ${series.quantity})}"></span>
141+
/*/-->
142+
<span th:if="${justAddedSeriesId != null and justAddedSeriesId == series.id}" class="label label-success">New</span>
143+
</li>
144+
<li>
145+
<a href="../category/info.html">Animals, Italy, 22&nbsp;stamps</a>
146+
<span class="label label-default">20 out of 22</span>
147+
</li>
148+
<li>
149+
<a href="../category/info.html">Animals, Italy, 1983, 5&nbsp;stamps</a>
150+
</li>
151+
</ul>
152+
</div>
153153
</div>
154154
</div>
155155
</div>

0 commit comments

Comments
 (0)