@using WebsitePanel.WebDavPortal.Constants @using WebsitePanel.WebDavPortal.Resources @using WebsitePanel.WebDavPortal.UI.Routes @model WebsitePanel.WebDavPortal.Models.Account.UserProfile @{ Layout = "~/Views/Shared/_Layout.cshtml"; var passwordExpriationText = string.Empty; if (Model.PasswordExpirationDateTime == DateTime.MaxValue) { passwordExpriationText = string.Format(UI.PasswordNeverExpiresFormat, Html.RouteLink(UI.Here.ToLowerInvariant(), AccountRouteNames.PasswordChange)); } else { passwordExpriationText = string.Format(UI.PasswordExpirationFormat, Model.PasswordExpirationDateTime.ToString(Formats.DateFormatWithTime), Html.RouteLink(UI.Here.ToLowerInvariant(), AccountRouteNames.PasswordChange)); } }