我需要显示一个标识链接,一旦它们被搁置,就需要把显示作为标志的链接。
这里是我迄今为止所做的事情:
<div class="account-links">
<a href="<%=Page.ResolveUrl("~/logout.aspx")%>" class="ico-logout">
<%=GetLocaleResourceString("Account.Logout")%></a>
<% if (NopContext.Current.User != null && NopContext.Current.User.IsAdmin)
{ %>
<a href="<%=Page.ResolveUrl("~/administration/")%>" class="ico-admin">
<%=GetLocaleResourceString("Account.Administration")%></a>
<%} %>
</div>
<div class="header-links">
<ul>
<asp:LoginView ID="topLoginView" runat="server">
<AnonymousTemplate>
</AnonymousTemplate>
<LoggedInTemplate>
<li>
<a href="<%= SEOHelper.GetMyAccountUrl()%>" class="account"><%=Page.User.Identity.Name %></a>
<% if (NopContext.Current.IsCurrentCustomerImpersonated)
{
%>
<span class="impersonate">(<%=string.Format(GetLocaleResourceString("Account.ImpersonatedAs"), this.CustomerService.UsernamesEnabled ? Server.HtmlEncode(NopContext.Current.User.Username) : Server.HtmlEncode(NopContext.Current.User.Email))%>
-
<asp:LinkButton runat="server" ID="lFinishImpersonate" Text="<% $NopResources:Account.ImpersonatedAs.Finish %>"
ToolTip="<% $NopResources:Account.ImpersonatedAs.Finish.Tooltip %>" OnClick="lFinishImpersonate_Click"
CssClass="finish-impersonation"></asp:LinkButton>)</span>
<%} %>
</li>
<li></li>
<% if (this.ForumService.AllowPrivateMessages)
{ %>
<li><a href="<%=Page.ResolveUrl("~/privatemessages.aspx")%>" class="ico-inbox">
<%=GetLocaleResourceString("PrivateMessages.Inbox")%></a>
<asp:Literal runat="server" ID="lUnreadPrivateMessages" />
</li>
<%} %>
</LoggedInTemplate>
</asp:LoginView>