File tree 2 files changed +6
-4
lines changed
java/ru/mystamps/web/controller
webapp/WEB-INF/views/category
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,9 @@ public String showInfo(
100
100
return null ;
101
101
}
102
102
103
- model .addAttribute ("category" , category );
103
+ model .addAttribute ("categoryId" , category .getId ());
104
+ model .addAttribute ("categorySlug" , category .getSlug ());
105
+ model .addAttribute ("categoryName" , LocaleUtils .getLocalizedName (userLocale , category ));
104
106
105
107
String lang = LocaleUtils .getLanguageOrNull (userLocale );
106
108
Integer categoryId = category .getId ();
Original file line number Diff line number Diff line change 12
12
< link rel ="stylesheet " href ="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css " th:href ="${BOOTSTRAP_CSS} " />
13
13
< link rel ="stylesheet " href ="https://cdn.rawgit.com/usrz/bootstrap-languages/3ac2a3d2b27ac43a471cd99e79d378a03b2c6b5f/languages.min.css " th:href ="${BOOTSTRAP_LANGUAGE} " />
14
14
< link rel ="stylesheet " href ="../../static/styles/main.css " th:href ="${MAIN_CSS} " />
15
- < link rel ="canonical " href ="" th:href ="@{${PUBLIC_URL} + ${INFO_CATEGORY_PAGE}(id=${category.id },slug=${category.slug })} " />
15
+ < link rel ="canonical " href ="" th:href ="@{${PUBLIC_URL} + ${INFO_CATEGORY_PAGE}(id=${categoryId },slug=${categorySlug })} " />
16
16
</ head >
17
17
< body >
18
18
< div class ="container-fluid ">
87
87
</ div >
88
88
< div class ="row ">
89
89
< div id ="content " class ="col-sm-12 ">
90
- < h3 th:text ="${category.getLocalizedName(#locale) } ">
90
+ < h3 th:text ="${categoryName } ">
91
91
Animals
92
92
</ h3 >
93
93
94
94
<!--/*/
95
95
<div class="row" th:if="${justAddedCategory}">
96
- <div class="alert alert-success text-center col-sm-4 col-sm-offset-4" th:utext="#{t_category_just_added(@{${ADD_SERIES_WITH_CATEGORY_PAGE}(id=${category.id })})}">
96
+ <div class="alert alert-success text-center col-sm-4 col-sm-offset-4" th:utext="#{t_category_just_added(@{${ADD_SERIES_WITH_CATEGORY_PAGE}(id=${categoryId })})}">
97
97
Category has been added.<br />
98
98
Now you could <a href="../series/add.html" class="alert-link">proceed with creating series</a>.
99
99
</div>
You can’t perform that action at this time.
0 commit comments