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/src/main/resources/templates | |
parent | ea6615d68ab230525827664f6d396c908bcc293e (diff) |
login
Diffstat (limited to 'juick-www/src/main/resources/templates')
-rw-r--r-- | juick-www/src/main/resources/templates/views/partial/navigation.html | 12 |
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"> |