File tree 4 files changed +55
-16
lines changed
src/main/webapp/WEB-INF/views
4 files changed +55
-16
lines changed Original file line number Diff line number Diff line change 33
33
34
34
--> < div id ="user_bar " class ="col-sm-2 vcenter ">
35
35
< ul class ="list-unstyled ">
36
- <!--/*/
36
+
37
37
< li sec:authorize ="isAuthenticated() ">
38
38
< i class ="glyphicon glyphicon-user "> </ i >
39
39
< a sec:authentication ="principal.userName "
44
44
John Doe
45
45
</ a >
46
46
</ li >
47
- /*/-->
47
+ <!-- /*/
48
48
<li sec:authorize="isAnonymous()">
49
49
<a href="../account/auth.html" th:href="@{${AUTHENTICATION_PAGE}}" th:text="#{t_enter}">Sign in</a>
50
50
</li>
51
- <!-- /*/
51
+ /*/-->
52
52
< li sec:authorize ="isAuthenticated() ">
53
53
< form id ="logout-form " method ="get " action ="../site/index.html " class ="no-margin " th:method ="post " th:action ="@{${LOGOUT_PAGE}} ">
54
54
< i class ="glyphicon glyphicon-share "> </ i > < input type ="submit " value ="Sign out " class ="btn btn-link no-padding " th:value ="#{t_logout} " />
55
55
</ form >
56
56
</ li >
57
- /*/-->
57
+ <!-- /*/
58
58
<li sec:authorize="isAnonymous()">
59
59
<a href="../account/register.html" th:href="@{${REGISTRATION_PAGE}}" th:text="#{t_register}">Register</a>
60
60
</li>
61
+ /*/-->
61
62
</ ul >
62
63
</ div >
63
64
</ div >
@@ -67,6 +68,16 @@ <h3 id="page-header" th:text="${categoryName}">
67
68
Animals
68
69
</ h3 >
69
70
71
+ < div class ="text-center " sec:authorize ="hasAuthority('CREATE_CATEGORY') ">
72
+ < a href ="../series/add.html "
73
+ class ="btn btn-default btn-xs "
74
+ th:unless ="${justAddedCategory} "
75
+ th:href ="@{${ADD_SERIES_PAGE}(category=${categorySlug})} "
76
+ th:text ="${#strings.capitalize('__#{t_add_series}__')} ">
77
+ Add a stamp series
78
+ </ a >
79
+ </ div >
80
+
70
81
<!--/*/
71
82
<div id="msg-success"
72
83
class="alert alert-success text-center col-sm-4 col-sm-offset-4"
Original file line number Diff line number Diff line change 30
30
31
31
--> < div id ="user_bar " class ="col-sm-2 vcenter ">
32
32
< ul class ="list-unstyled ">
33
- <!--/*/
34
33
< li sec:authorize ="isAuthenticated() ">
35
34
< i class ="glyphicon glyphicon-user "> </ i >
36
35
< a sec:authentication ="principal.userName "
41
40
John Doe
42
41
</ a >
43
42
</ li >
44
- /*/-->
43
+ <!-- /*/
45
44
<li sec:authorize="isAnonymous()">
46
45
<a href="../account/auth.html" th:href="@{${AUTHENTICATION_PAGE}}" th:text="#{t_enter}">Sign in</a>
47
46
</li>
48
- <!-- /*/
47
+ /*/-->
49
48
< li sec:authorize ="isAuthenticated() ">
50
49
< form id ="logout-form " method ="get " action ="../site/index.html " class ="no-margin " th:method ="post " th:action ="@{${LOGOUT_PAGE}} ">
51
50
< i class ="glyphicon glyphicon-share "> </ i > < input type ="submit " value ="Sign out " class ="btn btn-link no-padding " th:value ="#{t_logout} " />
52
51
</ form >
53
52
</ li >
54
- /*/-->
53
+ <!-- /*/
55
54
<li sec:authorize="isAnonymous()">
56
55
<a href="../account/register.html" th:href="@{${REGISTRATION_PAGE}}" th:text="#{t_register}">Register</a>
57
56
</li>
57
+ /*/-->
58
58
</ ul >
59
59
</ div >
60
60
</ div >
@@ -64,6 +64,15 @@ <h3 th:text="${#strings.capitalize(category_list)}">
64
64
Category list
65
65
</ h3 >
66
66
67
+ < div class ="text-center " sec:authorize ="hasAuthority('CREATE_CATEGORY') ">
68
+ < a href ="../series/add.html "
69
+ class ="btn btn-default btn-xs "
70
+ th:href ="@{${ADD_SERIES_PAGE}} "
71
+ th:text ="${#strings.capitalize('__#{t_add_series}__')} ">
72
+ Add a stamp series
73
+ </ a >
74
+ </ div >
75
+
67
76
< ul th:if ="${not #lists.isEmpty(categories)} ">
68
77
< li th:each ="category: ${categories} ">
69
78
< a href ="../category/info.html " th:href ="@{${INFO_CATEGORY_PAGE}(slug=${category.slug})} " th:text ="${category.name} "> Animals</ a >
Original file line number Diff line number Diff line change 33
33
34
34
--> < div id ="user_bar " class ="col-sm-2 vcenter ">
35
35
< ul class ="list-unstyled ">
36
- <!--/*/
37
36
< li sec:authorize ="isAuthenticated() ">
38
37
< i class ="glyphicon glyphicon-user "> </ i >
39
38
< a sec:authentication ="principal.userName "
44
43
John Doe
45
44
</ a >
46
45
</ li >
47
- /*/-->
46
+ <!-- /*/
48
47
<li sec:authorize="isAnonymous()">
49
48
<a href="../account/auth.html" th:href="@{${AUTHENTICATION_PAGE}}" th:text="#{t_enter}">Sign in</a>
50
49
</li>
51
- <!-- /*/
50
+ /*/-->
52
51
< li sec:authorize ="isAuthenticated() ">
53
52
< form id ="logout-form " method ="get " action ="../site/index.html " class ="no-margin " th:method ="post " th:action ="@{${LOGOUT_PAGE}} ">
54
53
< i class ="glyphicon glyphicon-share "> </ i > < input type ="submit " value ="Sign out " class ="btn btn-link no-padding " th:value ="#{t_logout} " />
55
54
</ form >
56
55
</ li >
57
- /*/-->
56
+ <!-- /*/
58
57
<li sec:authorize="isAnonymous()">
59
58
<a href="../account/register.html" th:href="@{${REGISTRATION_PAGE}}" th:text="#{t_register}">Register</a>
60
59
</li>
60
+ /*/-->
61
61
</ ul >
62
62
</ div >
63
63
</ div >
@@ -67,6 +67,16 @@ <h3 id="page-header" th:text="${#strings.capitalize(header)}">
67
67
Stamps of Italy
68
68
</ h3 >
69
69
70
+ < div class ="text-center " sec:authorize ="hasAuthority('CREATE_COUNTRY') ">
71
+ < a href ="../series/add.html "
72
+ class ="btn btn-default btn-xs "
73
+ th:unless ="${justAddedCountry} "
74
+ th:href ="@{${ADD_SERIES_PAGE}(country=${countrySlug})} "
75
+ th:text ="${#strings.capitalize('__#{t_add_series}__')} ">
76
+ Add a stamp series
77
+ </ a >
78
+ </ div >
79
+
70
80
<!--/*/
71
81
<div id="msg-success"
72
82
class="alert alert-success text-center col-sm-4 col-sm-offset-4"
Original file line number Diff line number Diff line change 30
30
31
31
--> < div id ="user_bar " class ="col-sm-2 vcenter ">
32
32
< ul class ="list-unstyled ">
33
- <!--/*/
34
33
< li sec:authorize ="isAuthenticated() ">
35
34
< i class ="glyphicon glyphicon-user "> </ i >
36
35
< a sec:authentication ="principal.userName "
41
40
John Doe
42
41
</ a >
43
42
</ li >
44
- /*/-->
43
+ <!-- /*/
45
44
<li sec:authorize="isAnonymous()">
46
45
<a href="../account/auth.html" th:href="@{${AUTHENTICATION_PAGE}}" th:text="#{t_enter}">Sign in</a>
47
46
</li>
48
- <!-- /*/
47
+ /*/-->
49
48
< li sec:authorize ="isAuthenticated() ">
50
49
< form id ="logout-form " method ="get " action ="../site/index.html " class ="no-margin " th:method ="post " th:action ="@{${LOGOUT_PAGE}} ">
51
50
< i class ="glyphicon glyphicon-share "> </ i > < input type ="submit " value ="Sign out " class ="btn btn-link no-padding " th:value ="#{t_logout} " />
52
51
</ form >
53
52
</ li >
54
- /*/-->
53
+ <!-- /*/
55
54
<li sec:authorize="isAnonymous()">
56
55
<a href="../account/register.html" th:href="@{${REGISTRATION_PAGE}}" th:text="#{t_register}">Register</a>
57
56
</li>
57
+ /*/-->
58
58
</ ul >
59
59
</ div >
60
60
</ div >
@@ -64,6 +64,15 @@ <h3 th:text="${#strings.capitalize(country_list)}">
64
64
Country list
65
65
</ h3 >
66
66
67
+ < div class ="text-center " sec:authorize ="hasAuthority('CREATE_COUNTRY') ">
68
+ < a href ="../series/add.html "
69
+ class ="btn btn-default btn-xs "
70
+ th:href ="@{${ADD_SERIES_PAGE}} "
71
+ th:text ="${#strings.capitalize('__#{t_add_series}__')} ">
72
+ Add a stamp series
73
+ </ a >
74
+ </ div >
75
+
67
76
< ul th:if ="${not #lists.isEmpty(countries)} ">
68
77
< li th:each ="country : ${countries} ">
69
78
< a href ="../country/info.html " th:href ="@{${INFO_COUNTRY_PAGE}(slug=${country.slug})} " th:text ="${country.name} "> Italy</ a >
You can’t perform that action at this time.
0 commit comments