Add logout link
This commit is contained in:
parent
c4f284031c
commit
838de8212e
|
@ -27,9 +27,16 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="navbar-nav">
|
<ul class="navbar-nav">
|
||||||
|
<template v-if="username">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a v-if="username" class="nav-link" href="#">{{ username }}</a>
|
<a class="nav-link" href="#">{{ username }}</a>
|
||||||
<a v-else class="nav-link" href="/login">Login</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>
|
||||||
|
|
Loading…
Reference in a new issue