diff options
author | Alexander Alexeev | 2016-12-12 22:41:10 +0700 |
---|---|---|
committer | Vitaly Takmazov | 2016-12-12 22:49:47 +0300 |
commit | c0831038bd7bde32df5af8fb851d210daeccc853 (patch) | |
tree | 7a29aec0a4620e5d6b3cfd733f2219f09da6e5f6 /juick-spring-www/src/main/webapp/WEB-INF/templates/layout/partial/navigation.html | |
parent | 353bfb2556ab2288126e448668839cf8b8434fc1 (diff) |
i18n for pages
Diffstat (limited to 'juick-spring-www/src/main/webapp/WEB-INF/templates/layout/partial/navigation.html')
-rw-r--r-- | juick-spring-www/src/main/webapp/WEB-INF/templates/layout/partial/navigation.html | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/juick-spring-www/src/main/webapp/WEB-INF/templates/layout/partial/navigation.html b/juick-spring-www/src/main/webapp/WEB-INF/templates/layout/partial/navigation.html index c7cd1c81..2317369c 100644 --- a/juick-spring-www/src/main/webapp/WEB-INF/templates/layout/partial/navigation.html +++ b/juick-spring-www/src/main/webapp/WEB-INF/templates/layout/partial/navigation.html @@ -1,43 +1,50 @@ -<!DOCTYPE html> -<html xmlns:th="http://www.thymeleaf.org" - xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"> - -<body> -<header layout:fragment="nav"> +<header layout:fragment="nav" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"> <div id="logo"><a href="/" th:href="@{/}">Juick</a></div> <nav id="global"> <ul> <li><a href="/" th:href="@{/}" th:text="#{link.popular}">Популярные</a></li> - <li><a href="/?show=all" th:href="@{/?show=all}" rel="nofollow" th:text="#{link.allMessages}">Все - сообщения</a></li> - <li><a href="/?show=photos" th:href="@{/?show=photos}" rel="nofollow" th:text="#{link.withPhotos}">Фотографии</a> - </li> + <li><a href="/?show=all" th:href="@{/?show=all}" rel="nofollow" th:text="#{link.allMessages}">Все сообщения</a></li> + <li><a href="/?show=photos" th:href="@{/?show=photos}" rel="nofollow" th:text="#{link.withPhotos}">Фотографии</a></li> </ul> </nav> <div id="search"> <form action="/"> - <input type="text" name="search" class="text" placeholder="Поиск" th:placeholder="#{label.search}" - th:value="${param.search}"/> + <input type="text" name="search" class="text" placeholder="Поиск" + th:placeholder="#{label.search}" th:value="${param.search}"/> </form> </div> <section id="headdiv"> <th:block th:if="${#authorization.expression('hasRole(''ROLE_USER'')')}"> <nav id="user"> <ul> - <li><a href="/?show=my" th:href="@{/?show=my}" th:text="#{link.my}">Моя лента</a></li> - <li><a href="/pm/inbox" th:href="@{/pm/inbox}" th:text="#{link.privateMessages}">Приватные</a></li> - <li><a href="/?show=discuss" th:href="@{/?show=discuss}" th:text="#{link.discuss}">Обсуждения</a> + <li> + <a href="/?show=my" th:href="@{/?show=my}" th:text="#{link.my}">Моя лента</a> </li> - <li><a href="/?show=recommended" th:href="@{/?show=recommended}" th:text="#{link.recommended}">Рекомендации</a> + <li> + <a href="/pm/inbox" th:href="@{/pm/inbox}" th:text="#{link.privateMessages}">Приватные</a> + </li> + <li> + <a href="/?show=discuss" th:href="@{/?show=discuss}" th:text="#{link.discuss}">Обсуждения</a> + </li> + <li> + <a href="/?show=recommended" th:href="@{/?show=recommended}" th:text="#{link.recommended}">Рекомендации</a> </li> </ul> </nav> <nav id="actions"> <ul> - <li><a href="/#post" th:href="@{/#post}" th:text="#{link.postMessage}">Написать</a></li> - <li><a href="/ugnich" th:href="@{/{userName}(userName=${#authentication.name})}" th:text="'@'+${#authentication.name}">@ugnich</a></li> - <li><a href="/settings" th:href="@{/settings}" th:text="#{link.settings}" rel="nofollow">Настройки</a></li> - <li><a href="/logout" th:href="@{/logout}" th:text="#{link.logout}">Выйти</a></li> + <li> + <a href="/#post" th:href="@{/#post}" th:text="#{link.postMessage}">Написать</a> + </li> + <li> + <a href="/ugnich" th:href="@{/{userName}(userName=${#authentication.name})}" th:text="'@'+${#authentication.name}">@ugnich</a> + </li> + <li> + <a href="/settings" th:href="@{/settings}" th:text="#{link.settings}" rel="nofollow">Настройки</a> + </li> + <li> + <a href="/logout" th:href="@{/logout}" th:text="#{link.logout}">Выйти</a> + </li> </ul> </nav> </th:block> @@ -45,6 +52,4 @@ <p>[(#{message.loginForSending(@{/login})})]</p> </th:block> </section> -</header> -</body> -</html> +</header>
\ No newline at end of file |