mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-12-01 23:10:41 +03:00
42 lines
1.1 KiB
Text
42 lines
1.1 KiB
Text
|
|
||
|
<% if (user?.admin){ %>
|
||
|
<div class="admin">
|
||
|
<a class="admin" href="/admin"><p>You are admin, and you can go your page!</p></a>
|
||
|
</div>
|
||
|
<hr>
|
||
|
|
||
|
<% } %>
|
||
|
|
||
|
<a href="/"><img class="logo" src="/images/logo.jpg" alt="AKF-FORUM"></a>
|
||
|
|
||
|
<div class="navbar" id="navbar">
|
||
|
|
||
|
<a href="/threads">THREADS</a>
|
||
|
<a href="/users">USERS</a>
|
||
|
<a href="/search">SEARCH</a>
|
||
|
<a href="/threads/create/">CREATE THREAD</a>
|
||
|
|
||
|
<% if (user){ %>
|
||
|
<div style="float: right;" class="user" id="user">
|
||
|
<a href=<%=user.getLink() %>>
|
||
|
<h1>
|
||
|
<%= user.name %><img class="circle" src=<%=user.avatar %> alt=<%= user.name %>>
|
||
|
</h1>
|
||
|
</a>
|
||
|
</div>
|
||
|
|
||
|
<% } else { %>
|
||
|
<a style="float: right; background-color: #5F875F;" href="/register">REGISTER</a>
|
||
|
<a id="login" style="float: right; background-color:#5F87AF; " href="/login">LOGIN</a>
|
||
|
<script>
|
||
|
document.getElementById("login").href += "?redirect="+window.location.pathname;
|
||
|
</script>
|
||
|
|
||
|
|
||
|
<% } %>
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
<hr>
|