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> </li>
</ul> </ul>
<ul class="navbar-nav"> <ul class="navbar-nav">
<li class="nav-item"> <template v-if="username">
<a v-if="username" class="nav-link" href="#">{{ username }}</a> <li class="nav-item">
<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> </li>
</ul> </ul>
</div> </div>