Add logout link

This commit is contained in:
Edward Betts 2021-07-08 14:53:43 +02:00
parent c4f284031c
commit 838de8212e

View file

@ -27,9 +27,16 @@
</li>
</ul>
<ul class="navbar-nav">
<template v-if="username">
<li class="nav-item">
<a v-if="username" class="nav-link" href="#">{{ username }}</a>
<a v-else class="nav-link" href="/login">Login</a>
<a class="nav-link" href="#">{{ username }}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/logout">Logout</a>
</li>
</template>
<li v-else class="nav-item">
<a class="nav-link" href="/login">Login</a>
</li>
</ul>
</div>