diff options
Diffstat (limited to 'src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx')
-rw-r--r-- | src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx b/src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx index 9afaab3..b88363c 100644 --- a/src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx +++ b/src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx @@ -1,14 +1,22 @@ <%@ 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") %> ] -<% - } -%> +<div class="collapse navbar-collapse navbar-right" id="dnoa-navbar-collapse-1"> + <% + if (Request.IsAuthenticated) + { + %> + <div class="navbar-text">Welcome <b><%= Html.Encode(Page.User.Identity.Name) %></b>!</div> + <ul class="nav navbar-nav"> + <li class="active"><%= Html.ActionLink("Log Off", "LogOff", "Account") %></li> + </ul> + <% + } + else + { + %> + <ul class="nav navbar-nav"> + <li class="active"><%= Html.ActionLink("Log On", "LogOn", "Account") %></li> + </ul> + <% + } + %> +</div> |