Source

main-vinayFork / Source / WebClient / Web.Client / Views / Shared / _Header.cshtml

Full commit
@using DataUp.Web.BizLogic.Model;
@using DataUp.Web.Client.Infrastructure;
@{
    string name = Helper.GetLoggedInUserName();
}
<header id="TestHeader">
    <div class="headerContainer">
        <a href="@Url.Action("Index", "Home")"><img src="@Url.Content("~/Images/logo.png")" class="logo"></a>
        @if (!Request.IsAuthenticated)
        {
            @Html.Action("GetLoginControl", "Authentication")
        }
        else
        {
            <div class="signinHolder rFloat">
                <div class="signin">
                    <div class="txt lFloat">
                        <a class="signOutLink" href="@Url.Action("SignOut", "Authentication")">Sign out</a></div>
                </div>
            </div>
            <label class="userName">
                @name</label>
            if (@name != "")
            {
            <label class="userNameWelcome">
                Welcome</label>
            }
        }
    </div>
</header>