diff options
author | Vitaly Takmazov | 2018-04-07 13:47:01 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-07 14:18:28 +0300 |
commit | fb0d5b72314e8463f3c5a650e7298ba0a924383d (patch) | |
tree | d2d9ff388ff7dfc6c3b9a6af876fb17dfc151c46 /juick-www | |
parent | ea6615d68ab230525827664f6d396c908bcc293e (diff) |
login
Diffstat (limited to 'juick-www')
3 files changed, 12 insertions, 2 deletions
diff --git a/juick-www/src/main/resources/messages.properties b/juick-www/src/main/resources/messages.properties index 5911e3b4..fb08858f 100644 --- a/juick-www/src/main/resources/messages.properties +++ b/juick-www/src/main/resources/messages.properties @@ -14,6 +14,7 @@ link.privateMessages=PM link.discuss=Discuss link.recommended=Recommended link.postMessage=Post +link.Login=Login link.logout=Logout link.settings.main=Main diff --git a/juick-www/src/main/resources/messages_ru.properties b/juick-www/src/main/resources/messages_ru.properties index a1c19bea..38c23b93 100644 --- a/juick-www/src/main/resources/messages_ru.properties +++ b/juick-www/src/main/resources/messages_ru.properties @@ -14,6 +14,7 @@ link.privateMessages=Приватные link.discuss=Диалоги link.recommended=Рекомендации link.postMessage=Написать +link.Login=Войти link.logout=Выйти link.settings.main=Главная diff --git a/juick-www/src/main/resources/templates/views/partial/navigation.html b/juick-www/src/main/resources/templates/views/partial/navigation.html index 7afabcc3..160d9a97 100644 --- a/juick-www/src/main/resources/templates/views/partial/navigation.html +++ b/juick-www/src/main/resources/templates/views/partial/navigation.html @@ -9,9 +9,17 @@ <li><a href="/?show=photos" rel="nofollow"><i data-icon="ei-camera" data-size="s"></i>{{ i18n("messages","link.withPhotos") }}</a></li> {% endif %} <li><a href="/?show=all" rel="nofollow"><i data-icon="ei-search" data-size="s"></i>{{ i18n("messages","link.allMessages") }}</a></li> - <li><a id="post" href="/post"><i data-icon="ei-pencil" data-size="s"></i>{{ - i18n("messages","link.postMessage") }}</a> + {% if visitor.uid > 0 %} + <li><a id="post" href="/post"> + <i data-icon="ei-pencil" data-size="s"></i>{{ i18n("messages","link.postMessage") }}</a> + </li> + {% else %} + <li> + <a class="a-login" href="/login" rel="nofollow"> + <i data-icon="ei-user" data-size="s"></i>{{ i18n("messages", "link.Login") }} + </a> </li> + {% endif %} </ul> </nav> <div id="search"> |