@page @using OliverBooth.Data.Web @using OliverBooth.Services @inject IProjectService ProjectService @{ ViewData["Title"] = "Projects"; }

Projects

@foreach (IProject[] chunk in ProjectService.GetProjects(ProjectStatus.Ongoing).OrderBy(p => p.Rank).Chunk(2)) {
@foreach (IProject project in chunk) {
In Active Development
@project.Name
@project.Name

@Html.Raw(ProjectService.GetDescription(project))

@if (!string.IsNullOrWhiteSpace(project.RemoteUrl)) { @if (string.IsNullOrWhiteSpace(project.RemoteTarget)) { View website } else { View on @project.RemoteTarget } }
}
} @foreach (IProject[] chunk in ProjectService.GetProjects(ProjectStatus.Past).Chunk(2)) {
@foreach (IProject project in chunk) {
Past Work
@project.Name
@project.Name

@Html.Raw(ProjectService.GetDescription(project))

@if (!string.IsNullOrWhiteSpace(project.RemoteUrl)) { @if (string.IsNullOrWhiteSpace(project.RemoteTarget)) { View website } else { View on @project.RemoteTarget } }
}
} @foreach (IProject[] chunk in ProjectService.GetProjects(ProjectStatus.Hiatus).Chunk(2)) {
@foreach (IProject project in chunk) {
On Hiatus
@project.Name
@project.Name

@Html.Raw(ProjectService.GetDescription(project))

@if (!string.IsNullOrWhiteSpace(project.RemoteUrl)) { @if (string.IsNullOrWhiteSpace(project.RemoteTarget)) { View website } else { View on @project.RemoteTarget } }
}
}