1 @using Microsoft.AspNet.Identity
2 @if (Request.IsAuthenticated)
4 using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
6 @Html.AntiForgeryToken()
8 <ul class="nav navbar-nav navbar-right">
10 @Html.ActionLink("Hello " + User.Identity.GetUserName() + "!", "Index", "Manage", routeValues: null, htmlAttributes: new { title = "Manage" })
12 <li><a href="javascript:document.getElementById('logoutForm').submit()">Log off</a></li>
18 <ul class="nav navbar-nav navbar-right">
19 <li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
20 <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>