<%@ Model="IEnumerable" Master="master.html" %> <%@ BeginContent="PageTitle" %> Projects <%@ EndContent %> <%@ BeginContent="Body" %> Here you can find a description of a selection of projects I have worked on, as well as links to code. You can find more of my work at my Research page. <% List> projects = new List>(); int maxProjectCount = 0; foreach(string category in (from p in Model select p.Category).Distinct()) { List list = (from p in Model where p.Category == category select p).ToList(); if(list.Count > maxProjectCount) maxProjectCount = list.Count; projects.Add(list);%> <% } %> <% for(int i = 0; i < maxProjectCount; i++) { %> <% foreach(List p in projects) { %> <% } %> <% } %>
<%= category %>
<% if(i < p.Count) { %> <%= p[i].ProjectTitle %> <% } %>
<% foreach(Project project in Model) { %>
<%= Html.RenderPartial("project.html", project) %> <% } %> <%@ EndContent %>