Last active
August 29, 2015 14:17
Revisions
-
ech01 revised this gist
Apr 3, 2015 . No changes.There are no files selected for viewing
-
ech01 created this gist
Mar 24, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ @{ int rowCounter = 0; } <div> @foreach(var e in (List)) { var Content = e.Content; rowCounter = rowCounter +1; if (rowCounter % 2 == 0) { <div class="media"> <div class="media-left"><img alt="@Content.Title" class="media-object" src="@Content.Picture" /></div> <div class="media-body"> <h4 class="media-heading">@[email protected]</h4>@Html.Raw(Content.Text)</div> </div> } else { <div class="media"><div class="media-body"> <h4 class="media-heading">@[email protected]</h4>@Html.Raw(Content.Text)</div> <div class="media-right"><img alt="@Content.Title" class="media-object" src="@Content.Picture" /></div> </div> } } </div>