Files
Orchard/src/Orchard.Web/Themes/TheThemeMachine/Views/User.cshtml
Michael Dorian Bach e10dc241c4 Updated User shape and more CSS revisions
--HG--
branch : dev
2010-10-13 19:22:49 -07:00

13 lines
751 B
Plaintext

@using System.Web.Mvc;
<div class="user-display">
@if (Request.IsAuthenticated) {
<span class="welcome">@T("Welcome, <strong>{0}</strong>!", WorkContext.CurrentUser.UserName)</span>
<span class="user-actions">
@Html.ActionLink(T("Log Off").ToString(), "LogOff", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = Context.Request.RawUrl })
@Html.ActionLink("Dashboard", "Index", new { Area = "Dashboard", Controller = "Admin" })
</span>
} else {
<span class="user-actions">@Html.ActionLink(T("Login").ToString(), "LogOn", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = Context.Request.RawUrl })</span>
}
</div>