aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/resources/templates/views/partial
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-07 13:47:01 +0300
committerGravatar Vitaly Takmazov2018-04-07 14:18:28 +0300
commitfb0d5b72314e8463f3c5a650e7298ba0a924383d (patch)
treed2d9ff388ff7dfc6c3b9a6af876fb17dfc151c46 /juick-www/src/main/resources/templates/views/partial
parentea6615d68ab230525827664f6d396c908bcc293e (diff)
login
Diffstat (limited to 'juick-www/src/main/resources/templates/views/partial')
-rw-r--r--juick-www/src/main/resources/templates/views/partial/navigation.html12
1 files changed, 10 insertions, 2 deletions
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">