aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/webapp/WEB-INF/views/partial/navigation.html
blob: 64877723941a50cfe49789af73510323f814179d (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
38
39
<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 type="text" name="search" class="text" placeholder="Поиск" value="{{ search }}"/>
        </form>
    </div>
    <section id="headdiv">
        {% if visitor.getUID() > 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>
                {% if not readonly %}
                <li><a href="/#post">{{ i18n("messages","link.postMessage") }}</a></li>
                {% endif %}
                <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","link.loginForSending", "/login") }}</a>.
        </p>
        {% endif %}
    </section>
</header>