mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-18 17:47:54 +08:00
Changed partial to ensure the area from the resulting link if present in the current request
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041472
This commit is contained in:
@@ -2,13 +2,17 @@
|
||||
<%
|
||||
if (Request.IsAuthenticated) {
|
||||
%>
|
||||
Welcome <b><%=Html.Encode(Page.User.Identity.Name)%></b>!
|
||||
[ <%=Html.ActionLink("Log Off", "LogOff", "Account")%> ]
|
||||
Welcome <b>
|
||||
<%=Html.Encode(Page.User.Identity.Name)%></b>! [
|
||||
<%=Html.ActionLink("Log Off", "LogOff", "Account", new { area = "" }, new { })%>
|
||||
]
|
||||
<%
|
||||
}
|
||||
else {
|
||||
%>
|
||||
[ <%=Html.ActionLink("Log On", "LogOn", "Account")%> ]
|
||||
[
|
||||
<%=Html.ActionLink("Log On", "LogOn", "Account", new{area=""}, new{})%>
|
||||
]
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
Reference in New Issue
Block a user