aboutsummaryrefslogtreecommitdiff
path: root/juick-www
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www')
-rw-r--r--juick-www/src/main/resources/messages.properties1
-rw-r--r--juick-www/src/main/resources/messages_ru.properties1
-rw-r--r--juick-www/src/main/resources/templates/views/partial/navigation.html12
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">