aboutsummaryrefslogtreecommitdiff
path: root/juick-spring-www/src/main/webapp/WEB-INF/templates/views/index.html
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-12-12 22:41:10 +0700
committerGravatar Vitaly Takmazov2016-12-12 22:49:47 +0300
commitc0831038bd7bde32df5af8fb851d210daeccc853 (patch)
tree7a29aec0a4620e5d6b3cfd733f2219f09da6e5f6 /juick-spring-www/src/main/webapp/WEB-INF/templates/views/index.html
parent353bfb2556ab2288126e448668839cf8b8434fc1 (diff)
i18n for pages
Diffstat (limited to 'juick-spring-www/src/main/webapp/WEB-INF/templates/views/index.html')
-rw-r--r--juick-spring-www/src/main/webapp/WEB-INF/templates/views/index.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/juick-spring-www/src/main/webapp/WEB-INF/templates/views/index.html b/juick-spring-www/src/main/webapp/WEB-INF/templates/views/index.html
index 8f667135..6b6f278d 100644
--- a/juick-spring-www/src/main/webapp/WEB-INF/templates/views/index.html
+++ b/juick-spring-www/src/main/webapp/WEB-INF/templates/views/index.html
@@ -3,17 +3,20 @@
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/mainLayout}">
<head>
- <title th:text="${title}">Main title</title>
+ <title th:if="${#authorization.expression('hasRole(''ROLE_USER'')')}" th:text="#{title.index.user}">Популярные</title>
+ <title th:if="${#authorization.expression('hasRole(''ROLE_ANONYM'')')}" th:text="#{title.index.anonym}">Микроблоги Juick: популярные записи</title>
</head>
<body>
<section layout:fragment="content">
- <div th:if="${visitor.getUid() > 0}" th:replace="views/partial/blog_postform" />
+ <div th:replace="views/partial/blog_postform"></div>
<div th:replace="views/partial/blog_messages"></div>
<div th:replace="views/partial/blog_paginator"></div>
</section>
+
<aside id="column">
<p layout:fragment="column" th:replace="views/partial/homecolumn">Main side column</p>
</aside>
+
</body>
</html> \ No newline at end of file