sonarr-repo-only/NzbDrone.Web/Views/Shared/LogOnUserControl.ascx

15 lines
338 B
Plaintext
Raw Normal View History

2010-09-23 03:19:47 +00:00
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
if (Request.IsAuthenticated) {
%>
Welcome <b><%: Page.User.Identity.Name %></b>!
[ <%: Html.ActionLink("Log Off", "LogOff", "Account") %> ]
<%
}
else {
%>
[ <%: Html.ActionLink("Log On", "LogOn", "Account") %> ]
<%
}
%>