/trunk/Kona.Web/Views/Shared/FeaturedProduct.ascx
# · ASP.NET · 12 lines · 10 code · 2 blank · 0 comment · 2 complexity · 8d5cdeebf7bfe65fa64c6e525eb3d04b MD5 · raw file
- <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Widget<IList<Product>>>" %>
-
- <%
- if(Model.Data.Count>0){
- var Product = Model.Data[0]; %>
- <a href="<%=Url.Action("Show","Home",new{sku=Product.SKU}) %>">
- <img src="/content/images/<%=Model.Body%>" />
- </a>
- <%}else{ %>
-
- <img src="/content/images/<%=Model.Body == "" ? "placeholder.png" : Model.Body %>" />
- <%} %>