aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/webapp/WEB-INF/views/partial/navigation.html
blob: 6930e9a908cdb03e37079672e850dcaf8795298c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<header>
    <div id="logo"><a href="/">Juick</a></div>
    <nav id="global">
        <ul>
            <li><a href="/">{{ i18n("messages","link.popular") }}</a></li>
            <li><a href="/?show=all" rel="nofollow">{{ i18n("messages","link.allMessages") }}</a></li>
            <li><a href="/?show=photos" rel="nofollow">{{ i18n("messages","link.withPhotos") }}</a></li>
        </ul>
    </nav>
    <div id="search">
        <form action="/">
            <input name="search" class="text"
                   placeholder="{{ i18n('messages','label.search') }}" value="{{ search | default('') }}"/>
        </form>
    </div>
    <div id="headdiv">
        {% if visitor.uid > 0 %}
        <nav id="user">
            <ul>
                <li><a href="/?show=my">{{ i18n("messages","link.my") }}</a></li>
                <li><a href="/pm/inbox">{{ i18n("messages","link.privateMessages") }}</a></li>
                <li><a href="/?show=discuss">{{ i18n("messages","link.discuss") }}</a></li>
                <li><a href="/?show=recommended">{{ i18n("messages","link.recommended") }}</a></li>
            </ul>
        </nav>
        <nav id="actions">
            <ul>
                <li><a id="post" href="/post"><i data-icon="ei-pencil" data-size="s"></i>{{ i18n("messages","link.postMessage") }}</a></li>
                <li><a href="/{{ visitor.getName() }}">@{{ visitor.getName() }}</a></li>
                <li><a href="/logout">{{ i18n("messages","link.logout") }}</a></li>
            </ul>
        </nav>
        {% else %}
        <p>{{ i18n("messages","message.loginForSending", "/login") | raw }}.</p>
        {% endif %}
    </div>
</header>