aboutsummaryrefslogtreecommitdiff
path: root/juick-spring-www/src/main/webapp/WEB-INF/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'juick-spring-www/src/main/webapp/WEB-INF/templates/index.html')
-rw-r--r--juick-spring-www/src/main/webapp/WEB-INF/templates/index.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/juick-spring-www/src/main/webapp/WEB-INF/templates/index.html b/juick-spring-www/src/main/webapp/WEB-INF/templates/index.html
index 4cd32be3..7ee2156d 100644
--- a/juick-spring-www/src/main/webapp/WEB-INF/templates/index.html
+++ b/juick-spring-www/src/main/webapp/WEB-INF/templates/index.html
@@ -3,12 +3,16 @@
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/mainLayout}">
<head>
- <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">
<p>Главная страница !</p>
+ <p th:text="${#authorization.expression('hasRole(''ROLE_USER'')')}"></p>
+ <p th:text="${#authorization.expression('hasRole(''ROLE_ANONYM'')')}"></p>
+ <p th:text="${#authentication}"></p>
</section>
<aside id="column">
<p layout:fragment="column"></p>