2020-02-15 17:34:42 +00:00
|
|
|
{{ script('scripts/components/navbar/app.bundle.js') }}
|
2020-01-18 20:46:06 +00:00
|
|
|
<nav class="{{ isLanding ? 'darken' : '' }} navbar" role="navigation" aria-label="main navigation">
|
|
|
|
<div class="navbar-brand">
|
|
|
|
<a class="navbar-item" href="/">
|
|
|
|
{{-- <img src="https://bulma.io/images/bulma-logo.png" width="112" height="28"> --}}
|
|
|
|
<strong>Seepur</strong>
|
|
|
|
</a>
|
2020-01-26 22:16:16 +00:00
|
|
|
|
|
|
|
<a id="menu-button" role="button" class="navbar-burger burger {{ isLanding ? 'has-text-light' : '' }} " aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
|
2020-01-18 20:46:06 +00:00
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
2020-01-26 22:16:16 +00:00
|
|
|
|
|
|
|
<div id="nav-menu" class="navbar-menu">
|
2020-01-18 20:46:06 +00:00
|
|
|
<div class="navbar-start">
|
2020-03-17 22:16:34 +00:00
|
|
|
<a class="navbar-item" href="/">
|
2020-01-18 20:46:06 +00:00
|
|
|
Home
|
|
|
|
</a>
|
2020-01-26 22:16:16 +00:00
|
|
|
|
2020-01-18 20:46:06 +00:00
|
|
|
<a class="navbar-item">
|
|
|
|
About
|
|
|
|
</a>
|
2020-01-26 22:16:16 +00:00
|
|
|
|
2020-01-18 20:46:06 +00:00
|
|
|
</div>
|
2020-01-26 22:16:16 +00:00
|
|
|
|
2020-01-18 20:46:06 +00:00
|
|
|
<div class="navbar-end">
|
|
|
|
@loggedIn
|
|
|
|
<div class="navbar-item has-dropdown is-hoverable is-dark">
|
|
|
|
<a class="navbar-link">
|
|
|
|
{{auth.user.name}}
|
|
|
|
</a>
|
2020-01-26 22:16:16 +00:00
|
|
|
|
2020-01-18 20:46:06 +00:00
|
|
|
<div class="navbar-dropdown">
|
2020-02-15 17:34:42 +00:00
|
|
|
<a class="navbar-item" href='/settings'>
|
2020-01-18 20:46:06 +00:00
|
|
|
Settings
|
|
|
|
</a>
|
2020-02-15 17:34:42 +00:00
|
|
|
@if(auth.user.is_admin)
|
2020-03-17 22:16:34 +00:00
|
|
|
<a class="navbar-item" href='/admin/'>
|
2020-02-15 17:34:42 +00:00
|
|
|
Admin Settigns
|
|
|
|
</a>
|
|
|
|
@endif
|
2020-01-18 20:46:06 +00:00
|
|
|
<a class="navbar-item" href="/logout">
|
|
|
|
Logout
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<div class="navbar-item">
|
|
|
|
<div class="buttons">
|
|
|
|
<a class="button is-primary" href='/register'>
|
|
|
|
<strong>Sign up</strong>
|
|
|
|
</a>
|
|
|
|
<a class="button is-light" href='/login'>
|
|
|
|
Log in
|
|
|
|
</a>
|
|
|
|
</div>
|
2020-01-26 22:16:16 +00:00
|
|
|
</div>
|
2020-01-18 20:46:06 +00:00
|
|
|
@endloggedIn
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-01-26 22:16:16 +00:00
|
|
|
</nav>
|