From fb0d5b72314e8463f3c5a650e7298ba0a924383d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 7 Apr 2018 13:47:01 +0300 Subject: login --- juick-www/src/main/resources/messages.properties | 1 + juick-www/src/main/resources/messages_ru.properties | 1 + .../main/resources/templates/views/partial/navigation.html | 12 ++++++++++-- 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 @@
  • {{ i18n("messages","link.withPhotos") }}
  • {% endif %}
  • {{ i18n("messages","link.allMessages") }}
  • -
  • {{ - i18n("messages","link.postMessage") }} + {% if visitor.uid > 0 %} +
  • + {{ i18n("messages","link.postMessage") }} +
  • + {% else %} +
  • + + {{ i18n("messages", "link.Login") }} +
  • + {% endif %}