Skip to content

Instantly share code, notes, and snippets.

@detroitpro
Created February 12, 2016 18:33
Show Gist options
  • Save detroitpro/ebc02c9b9dbcc50d4582 to your computer and use it in GitHub Desktop.
Save detroitpro/ebc02c9b9dbcc50d4582 to your computer and use it in GitHub Desktop.
rows
@for (int i = 0; i < Model.DisplayRows; i++)
{
var skip = (i == 0) ? i : i * 3;
<div class="row-fluid">
@foreach (var product in Model.StoreProducts.Skip(skip).Take(3))
{
<div class="span4 leaf-container" style="margin-bottom: 20px; min-height: 215px;
border: 1px solid #DDD">
<img class="on-sale-strap" src="https://mtgshops.blob.core.windows.net/site/onSale.png" />
</div>
}
</div>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment