diff options
author | Alex Bitney | 2016-02-07 00:00:41 +0200 |
---|---|---|
committer | Alex Bitney | 2016-02-07 00:00:41 +0200 |
commit | c2d316449f85bd2b74ae9ffaa3d08b7a5ee282cf (patch) | |
tree | ce808c6d65e4a61913497f5d397473f75fadc701 /src/main/resources/templates/parts/page_navigation.html | |
parent | 1fffebc18bbdbe87b456e2b3bd66e9ce5a6afcb8 (diff) |
added tags when posting new message
added templates engine (rythm engine) and moved something to it.
WARNING: textext plugin does not work when minimized, and also I fixed bug in it.
Diffstat (limited to 'src/main/resources/templates/parts/page_navigation.html')
-rw-r--r-- | src/main/resources/templates/parts/page_navigation.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/main/resources/templates/parts/page_navigation.html b/src/main/resources/templates/parts/page_navigation.html new file mode 100644 index 00000000..018818b0 --- /dev/null +++ b/src/main/resources/templates/parts/page_navigation.html @@ -0,0 +1,40 @@ +@args String search, com.juick.User visitor +<header> + <div id="logo"><a href="/">Juick</a></div> + <nav id="global"> + <ul> + <li><a href="/">Популярные</a></li> + <li><a href="/?show=all" rel="nofollow">Все сообщения</a></li> + <li><a href="/?show=photos" rel="nofollow">Фотографии</a></li> + </ul> + </nav> + <div id="search"> + <form action="/"><input type="text" name="search" class="text" placeholder="Поиск" + @if (search !=null) { + value="@search" + } + /></form> + </div> + <section id="headdiv"> + @if (visitor != null) { + <nav id="user"> + <ul> + <li><a href="/?show=my">Моя лента</a></li> + <li><a href="/pm/inbox">Приватные</a></li> + <li><a href="/?show=discuss">Обсуждения</a></li> + <li><a href="/?show=recommended">Рекомендации</a></li> + </ul> + </nav> + <nav id="actions"> + <ul> + <li><a href="/#post">Написать</a></li> + <li><a href="/@visitor.getUName()">@@ @visitor.getUName()</a></li> + <li><a href="/logout">Выйти</a></li> + </ul> + </nav> + } else { + <p>Чтобы добавлять сообщения и комментарии, <a href="#" onclick="return openDialogLogin()">представьтесь</a>. + </p> + } + </section> +</header> |