PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Kona.Web/Views/Shared/FeaturedProduct.ascx

#
ASP.NET | 12 lines | 10 code | 2 blank | 0 comment | 2 complexity | 8d5cdeebf7bfe65fa64c6e525eb3d04b MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Widget<IList<Product>>>" %>
  2. <%
  3. if(Model.Data.Count>0){
  4. var Product = Model.Data[0]; %>
  5. <a href="<%=Url.Action("Show","Home",new{sku=Product.SKU}) %>">
  6. <img src="/content/images/<%=Model.Body%>" />
  7. </a>
  8. <%}else{ %>
  9. <img src="/content/images/<%=Model.Body == "" ? "placeholder.png" : Model.Body %>" />
  10. <%} %>