1234567891011121314151617181920212223242526272829303132 |
- <#include "security.ftl">
- <#import "login.ftl" as login>
- <nav class="navbar navbar-expand-lg bg-body-tertiary">
- <div class="container-fluid">
- <a class="navbar-brand" href="/">Sweater</a>
- <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbarNav">
- <ul class="navbar-nav me-auto">
- <li class="nav-item">
- <a class="nav-link" aria-current="page" href="/">Home</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" aria-current="page" href="/feed">Messages</a>
- </li>
- <#if isAdmin>
- <li class="nav-item">
- <a class="nav-link" aria-current="page" href="/user">Users</a>
- </li>
- </#if>
- </ul>
- <#if user??>
- <div class="navbar-text">${name}</div>
- <@login.logout />
- </#if>
- </div>
- </div>
- </nav>
|