2
2
< html lang ="en " th:lang ="${#locale.language == 'ru' ? 'ru' : 'en'} "
3
3
xmlns ="http://www.w3.org/1999/xhtml "
4
4
xmlns:th ="http://www.thymeleaf.org "
5
- xmlns:sec ="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3 "
6
- xmlns:togglz ="https://github.com/heneke/thymeleaf-extras-togglz ">
5
+ xmlns:sec ="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3 ">
7
6
< head >
8
7
< meta charset ="utf-8 " />
9
8
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
64
63
< nav >
65
64
< p th:text ="|#{t_you_may}:| "> You may:</ p >
66
65
< ul >
67
- < li togglz:active =" LIST_CATEGORIES " >
66
+ < li >
68
67
< a th:href ="@{${GET_CATEGORIES_PAGE}} " th:text ="#{t_show_categories_list} " href ="../category/list.html "> show list of categories</ a >
69
68
</ li >
70
- < li togglz:active =" LIST_COUNTRIES " >
69
+ < li >
71
70
< a th:href ="@{${GET_COUNTRIES_PAGE}} " th:text ="#{t_show_countries_list} " href ="../country/list.html "> show list of countries</ a >
72
71
</ li >
73
72
< li sec:authorize ="hasAuthority('IMPORT_SERIES') ">
88
87
< li sec:authorize ="hasAuthority('ADD_PARTICIPANT') ">
89
88
< a th:href ="@{${ADD_PARTICIPANT_PAGE}} " th:text ="#{t_add_buyer_seller} " href ="../participant/add.html "> add buyer/seller</ a >
90
89
</ li >
91
- < li togglz:active =" VIEW_SITE_EVENTS " sec:authorize ="hasAuthority('VIEW_SITE_EVENTS') ">
90
+ < li sec:authorize ="hasAuthority('VIEW_SITE_EVENTS') ">
92
91
< a th:href ="@{${SITE_EVENTS_PAGE}} " th:text ="#{t_view_suspicious_activities} " href ="events.html "> view suspicious activities</ a >
93
92
</ li >
94
93
< li sec:authorize ="hasAuthority('VIEW_DAILY_STATS') ">
98
97
</ nav >
99
98
</ div >
100
99
< div class ="col-sm-3 ">
101
- <!--/*/
102
- <th:block togglz:active="SHOW_RECENT_COLLECTIONS_ON_INDEX_PAGE" th:if="${not #lists.isEmpty(recentlyAddedCollections)}">
103
- /*/-->
104
- < div class ="panel panel-default ">
105
- < div class ="panel-heading ">
106
- < h4 class ="panel-title " th:text ="#{t_recently_added_collections} "> Recently created collections</ h4 >
107
- </ div >
108
- < div class ="panel-body ">
109
- < ul class ="list-unstyled " th:remove ="all-but-first ">
110
- < li th:each ="collection : ${recentlyAddedCollections} ">
111
- < a href ="../collection/info.html " th:href ="@{${INFO_COLLECTION_PAGE}(slug=${collection.slug})} " th:text ="${collection.name} "> John Doe</ a >
112
- </ li >
113
- < li > < a href ="../collection/info.html "> Edith Roberts</ a > </ li >
114
- < li > < a href ="../collection/info.html "> Tyler Dean</ a > </ li >
115
- < li > < a href ="../collection/info.html "> Gwen Schultz</ a > </ li >
116
- </ ul >
117
- </ div >
100
+ < div class ="panel panel-default " th:if ="${not #lists.isEmpty(recentlyAddedCollections)} ">
101
+ < div class ="panel-heading ">
102
+ < h4 class ="panel-title " th:text ="#{t_recently_added_collections} "> Recently created collections</ h4 >
103
+ </ div >
104
+ < div class ="panel-body ">
105
+ < ul class ="list-unstyled " th:remove ="all-but-first ">
106
+ < li th:each ="collection : ${recentlyAddedCollections} ">
107
+ < a href ="../collection/info.html " th:href ="@{${INFO_COLLECTION_PAGE}(slug=${collection.slug})} " th:text ="${collection.name} "> John Doe</ a >
108
+ </ li >
109
+ < li > < a href ="../collection/info.html "> Edith Roberts</ a > </ li >
110
+ < li > < a href ="../collection/info.html "> Tyler Dean</ a > </ li >
111
+ < li > < a href ="../collection/info.html "> Gwen Schultz</ a > </ li >
112
+ </ ul >
118
113
</ div >
119
- <!--/*/
120
- </th:block>
121
- /*/-->
114
+ </ div >
122
115
</ div >
123
116
< div class ="col-sm-4 ">
124
- <!--/*/
125
- <th:block togglz:active="SHOW_RECENT_SERIES_ON_INDEX_PAGE" th:if="${not #lists.isEmpty(recentlyAddedSeries)}">
126
- /*/-->
127
- < div class ="panel panel-default ">
128
- < div class ="panel-heading ">
129
- < h4 class ="panel-title " th:text ="#{t_recently_added_series} "> Recently added series</ h4 >
130
- </ div >
131
- < div class ="panel-body ">
132
- < ul class ="list-unstyled " th:remove ="all-but-first ">
133
- < li th:each ="series : ${recentlyAddedSeries} ">
134
- < a href ="../series/info.html " th:href ="@{${INFO_SERIES_PAGE}(id=${series.id})} ">
135
- < span th:remove ="tag " th:if ="${series.country != null} " th:text ="|${series.country}, | "> Italy, </ span >
136
- < span th:remove ="tag " th:if ="${series.year != null} " th:text ="|${series.year}, | "> 1999, </ span >
137
- < span th:remove ="tag " th:text ="|${series.quantity} ${series.quantity != 1 ? '__#{t_stamps}__' : '__#{t_stamp}__'}| "> 7 stamps</ span >
138
- < span th:remove ="tag " th:if ="${not series.perforated} " th:text ="|(#{t_wo_perforation_short})| "> (without perforation)</ span >
139
- </ a >
140
- </ li >
141
- < li > < a href ="../series/info.html "> Italy, 1997, 8 stamps</ a > </ li >
142
- < li > < a href ="../series/info.html "> Italy, 2009, 10 stamps</ a > </ li >
143
- < li > < a href ="../series/info.html "> Italy, 4 stamps</ a > </ li >
144
- < li > < a href ="../series/info.html "> Italy, 2002, 12 stamps</ a > </ li >
145
- < li > < a href ="../series/info.html "> Italy, 1993, 19 stamps</ a > </ li >
146
- < li > < a href ="../series/info.html "> Italy, 4 stamps</ a > </ li >
147
- < li > < a href ="../series/info.html "> Italy, 11 stamps (without perforation)</ a > </ li >
148
- < li > < a href ="../series/info.html "> Italy, 2014, 1 stamp</ a > </ li >
149
- < li > < a href ="../series/info.html "> Italy, 1996, 16 stamps (without perforation)</ a > </ li >
150
- </ ul >
151
- </ div >
117
+ < div class ="panel panel-default " th:if ="${not #lists.isEmpty(recentlyAddedSeries)} ">
118
+ < div class ="panel-heading ">
119
+ < h4 class ="panel-title " th:text ="#{t_recently_added_series} "> Recently added series</ h4 >
152
120
</ div >
153
- <!--/*/
154
- </th:block>
155
- /*/-->
121
+ < div class ="panel-body ">
122
+ < ul class ="list-unstyled " th:remove ="all-but-first ">
123
+ < li th:each ="series : ${recentlyAddedSeries} ">
124
+ < a href ="../series/info.html " th:href ="@{${INFO_SERIES_PAGE}(id=${series.id})} ">
125
+ < span th:remove ="tag " th:if ="${series.country != null} " th:text ="|${series.country}, | "> Italy, </ span >
126
+ < span th:remove ="tag " th:if ="${series.year != null} " th:text ="|${series.year}, | "> 1999, </ span >
127
+ < span th:remove ="tag " th:text ="|${series.quantity} ${series.quantity != 1 ? '__#{t_stamps}__' : '__#{t_stamp}__'}| "> 7 stamps</ span >
128
+ < span th:remove ="tag " th:if ="${not series.perforated} " th:text ="|(#{t_wo_perforation_short})| "> (without perforation)</ span >
129
+ </ a >
130
+ </ li >
131
+ < li > < a href ="../series/info.html "> Italy, 1997, 8 stamps</ a > </ li >
132
+ < li > < a href ="../series/info.html "> Italy, 2009, 10 stamps</ a > </ li >
133
+ < li > < a href ="../series/info.html "> Italy, 4 stamps</ a > </ li >
134
+ < li > < a href ="../series/info.html "> Italy, 2002, 12 stamps</ a > </ li >
135
+ < li > < a href ="../series/info.html "> Italy, 1993, 19 stamps</ a > </ li >
136
+ < li > < a href ="../series/info.html "> Italy, 4 stamps</ a > </ li >
137
+ < li > < a href ="../series/info.html "> Italy, 11 stamps (without perforation)</ a > </ li >
138
+ < li > < a href ="../series/info.html "> Italy, 2014, 1 stamp</ a > </ li >
139
+ < li > < a href ="../series/info.html "> Italy, 1996, 16 stamps (without perforation)</ a > </ li >
140
+ </ ul >
141
+ </ div >
142
+ </ div >
156
143
</ div >
157
144
< div class ="col-sm-2 ">
158
145
< div class ="panel panel-default ">
@@ -167,7 +154,7 @@ <h4 class="panel-title" th:text="#{t_in_db}">In our database</h4>
167
154
< p th:text ="|#{t_collections_amount}: ${collectionsCounter}| "> Collections: 3</ p >
168
155
</ div >
169
156
</ div >
170
- < div togglz:active =" SHOW_SEARCH_PANEL_ON_INDEX_PAGE " class ="panel panel-default ">
157
+ < div class ="panel panel-default ">
171
158
< div class ="panel-heading ">
172
159
< h4 class ="panel-title " th:text ="#{t_search_by_catalog} "> Search by catalog</ h4 >
173
160
</ div >
0 commit comments