22 lines
420 B
Plaintext
22 lines
420 B
Plaintext
package components
|
|
|
|
import c "git.ekzyis.com/ekzyis/delphi.market/server/router/context"
|
|
|
|
templ Header() {
|
|
<header class="mt-3">
|
|
<nav class="flex flex-row">
|
|
<div>
|
|
<a href="/">home</a>
|
|
</div>
|
|
<div class="ms-auto">
|
|
<a href="/about">about</a>
|
|
if ctx.Value(c.SessionContextKey) != nil {
|
|
<a href="/user">user</a>
|
|
} else {
|
|
<a href="/login">login</a>
|
|
}
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
}
|