@page "/project/{slug}" @using Markdig @using OliverBooth.Data.Web @using OliverBooth.Services @model Project @inject IProjectService ProjectService @inject MarkdownPipeline MarkdownPipeline @{ IProject? project = Model.SelectedProject; ViewData["Title"] = project is null ? "Projects" : project.Name; }
@if (project is null) {

Project Not Found

return; }

@project.Name

@if (!string.IsNullOrWhiteSpace(project.Tagline)) {

@project.Tagline

}

@project.Name

@if (project.RemoteUrl != null) { }
Languages @foreach (IProgrammingLanguage language in ProjectService.GetProgrammingLanguages(project)) { @language.Name }
Status @switch (project.Status) { case ProjectStatus.Ongoing: In Active Development break; case ProjectStatus.Past: Completed break; case ProjectStatus.Hiatus: On Hiatus break; case ProjectStatus.Retired: Retired break; }
View @(new Uri(project.RemoteUrl).Host)
Details @Html.Raw(Markdown.ToHtml(project.Details, MarkdownPipeline))