Web App Gallery filtering/searching fixed
This commit is contained in:
parent
14db21e39c
commit
40ba3f65de
5 changed files with 23 additions and 6 deletions
|
@ -123,7 +123,7 @@ ul.WPIKeywordList>li {
|
|||
<asp:hyperlink NavigateUrl='<%# EditUrl("ApplicationID", Eval("Id").ToString(), "edit", "SpaceID=" + PanelSecurity.PackageId.ToString()) %>'
|
||||
runat="server" ID="Hyperlink3" ToolTip='<%# Eval("Title") %>'>
|
||||
<asp:Image runat="server" ID="Image1" Width="120" Height="120"
|
||||
ImageUrl='<%# "~/DesktopModules/WebsitePanel/ResizeImage.ashx?width=120&height=120&url=" + Server.UrlEncode((string)Eval("IconUrl")) %>'
|
||||
ImageUrl='<%# GetIconUrlOrDefault((string)Eval("IconUrl")) %>'
|
||||
AlternateText='<%# Eval("Title") %>'>
|
||||
</asp:Image>
|
||||
</asp:hyperlink>
|
||||
|
|
|
@ -178,5 +178,15 @@ namespace WebsitePanel.Portal
|
|||
}
|
||||
ES.Services.WebApplicationGallery.SetResourceLanguage(PanelSecurity.PackageId, lang);
|
||||
}
|
||||
|
||||
protected string GetIconUrlOrDefault(string url)
|
||||
{
|
||||
if (string.IsNullOrEmpty(url))
|
||||
{
|
||||
return "/App_Themes/Default/icons/sphere_128.png";
|
||||
}
|
||||
|
||||
return "~/DesktopModules/WebsitePanel/ResizeImage.ashx?width=120&height=120&url=" + Server.UrlEncode(url);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue