<%@ Control language="c#" Inherits="Xpdt.Portal.Links" CodeBehind="Links.ascx.cs" AutoEventWireup="false" %>
<%@ Register TagPrefix="Portal" TagName="Title" Src="~/DesktopModuleTitle.ascx"%>
<%@ Register TagPrefix="Portal" TagName="Divider" Src="~/ModuleDivider.ascx"%>
<TABLE width="100%">
	<TR>
		<TD class="ModuleFrame">
			<portal:title EditUrl="~/DesktopModules/EditLinks.aspx" EditText="Add Link" runat="server" id="Title1" />
			<asp:DataList id="myDataList" CellPadding="4" Width="100%" runat="server">
				<ItemTemplate>
					<span class="<%# GetNormalStyle( ) %>">
						<asp:Image id="Image2" Visible='<%# !IsEditable %>' ImageUrl='<%# linkImage %>' runat="server">
						</asp:Image>
						<asp:HyperLink id="editLink" ToolTip="Click here to edit this link" Visible='<%# IsEditable %>' ImageUrl="<%# linkImage %>" NavigateUrl='<%# "~/DesktopModules/EditLinks.aspx?ItemID=" + DataBinder.Eval(Container.DataItem,"ItemID") + "&mid=" + ModuleId %>' runat="server" />
						<asp:HyperLink Text='<%# DataBinder.Eval(Container.DataItem,"Title") %>' NavigateUrl='<%# DataBinder.Eval(Container.DataItem,"Url") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem,"Description") %>' Target="_new" runat="server" />
					</span>
					<br>
				</ItemTemplate>
			</asp:DataList>
			<Portal:Divider runat="server" id="Divider1" />
		</TD>
	</TR>
</TABLE>
