File tree 2 files changed +2
-0
lines changed
java/ru/mystamps/web/controller
webapp/WEB-INF/views/collection
2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ public String addToCollection(
187
187
.toString ();
188
188
189
189
redirectAttributes .addFlashAttribute ("justAddedSeries" , true );
190
+ redirectAttributes .addFlashAttribute ("justAddedSeriesId" , series .getId ());
190
191
191
192
return "redirect:" + dstUrl ;
192
193
}
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ <h3 class="text-center" th:text="#{t_collection_of(${ownerName})}">
94
94
< span th:remove ="tag " th:text ="|${series.quantity} #{t_items}| "> 7 item(s)</ span >
95
95
< span th:remove ="tag " th:if ="${not series.perforated} " th:text ="|(#{t_wo_perforation_short})| "> (without perforation)</ span >
96
96
</ a >
97
+ < span th:if ="${justAddedSeriesId != null and justAddedSeriesId == series.id} " class ="label label-success "> New</ span >
97
98
</ li >
98
99
< li >
99
100
< a href ="../category/info.html "> Animals</ a > »
You can’t perform that action at this time.
0 commit comments