summaryrefslogtreecommitdiffstats
path: root/src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx
diff options
context:
space:
mode:
authorDavid Christiansen <coding@davedoes.net>2016-06-06 13:53:24 +0100
committerDavid Christiansen <coding@davedoes.net>2016-06-06 16:10:25 +0100
commit442909c55b4b7943ad1a426072c74a0b0a4fdf95 (patch)
tree6fb18f8baa3e69bc053a8f8e63690f6ec60c6208 /src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx
parent2ed563499ad1fbafd13d5903fb79b6bf28f0e654 (diff)
downloadDotNetOpenAuth.Samples-442909c55b4b7943ad1a426072c74a0b0a4fdf95.zip
DotNetOpenAuth.Samples-442909c55b4b7943ad1a426072c74a0b0a4fdf95.tar.gz
DotNetOpenAuth.Samples-442909c55b4b7943ad1a426072c74a0b0a4fdf95.tar.bz2
Framework update to 4.5.2
DNOA Nuget update
Diffstat (limited to 'src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx')
-rw-r--r--src/OAuth/OAuthAuthorizationServer/Views/Shared/LogOnUserControl.ascx34
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>