aboutsummaryrefslogtreecommitdiff
path: root/juick-spring-www/src/main/webapp/WEB-INF/templates/index.html
blob: 7ee2156d7934e3a8568d695a625d47769065af2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{layout/mainLayout}">
<head>
    <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>
</aside>
</body>
</html>