﻿@if (Request.IsAuthenticated) {
    <a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-user" style="color: #f2105c"></i> @Session["DisplayName"]<span class="caret"></span></a>
    <ul class="dropdown-menu">
        <li>@Html.ActionLink("Profile", "Profile", "User")</li>
        <li class="divider"></li>
        <li>@Html.ActionLink("Log Out", "Logout", "User")</li>
    </ul>
} else {
    <a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-user" style="color: #f2105c"></i> Log In<span class="caret"></span>    </a>
    <ul class="dropdown-menu">
        <li><a href="@ViewBag.GoogleLoginUrl" id="googleLoginLink">Log in with Google</a></li>
        <li><a href="@ViewBag.GoogleLoginUrl" id="facebookLoginLink">Log in with Facebook</a></li>
        <li><a href="@ViewBag.GoogleLoginUrl" id="twitterLoginLink">Log in with Twitter</a></li>
        <li><a data-toggle="modal" href="#openIdLogin">Log in with an OpenID</a></li>
        <li class="divider"></li>
        <li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
    </ul>
}
﻿@if (Request.IsAuthenticated) {
    <a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-user" style="color: #f2105c"></i> @Session["DisplayName"]<span class="caret"></span></a>
    <ul class="dropdown-menu">
        <li>@Html.ActionLink("Profile", "Profile", "User")</li>
        <li class="divider"></li>
        <li>@Html.ActionLink("Log Out", "Logout", "User", new { Area = string.Empty }, htmlAttributes: null)</li>
    </ul>
} else {
    <a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-user" style="color: #f2105c"></i> Log In<span class="caret"></span>    </a>
    <ul class="dropdown-menu">
        <li><a href="@ViewBag.GoogleLoginUrl" id="googleLoginLink">Log in with Google</a></li>
        <li><a href="@ViewBag.GoogleLoginUrl" id="facebookLoginLink">Log in with Facebook</a></li>
        <li><a href="@ViewBag.GoogleLoginUrl" id="twitterLoginLink">Log in with Twitter</a></li>
        <li><a data-toggle="modal" href="#openIdLogin">Log in with an OpenID</a></li>
        <li class="divider"></li>
        <li>@Html.ActionLink("Register", "Register", "Account", htmlAttributes: new { id = "registerLink" })</li>
    </ul>
}
Fix Log Out link so it works everywhere.
Fix Log Out link so it works everywhere.

No more 404 if trying to log out from the admin area.
