feat: use project name for page title

This commit is contained in:
Oliver Booth 2023-12-24 12:34:07 +00:00
parent cbfdefae71
commit 49d651382a
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5
1 changed files with 3 additions and 2 deletions

View File

@ -7,11 +7,12 @@
@inject MarkdownPipeline MarkdownPipeline
@{
ViewData["Title"] = "Projects";
IProject? project = Model.SelectedProject;
ViewData["Title"] = project is null ? "Projects" : project.Name;
}
<main class="container">
@if (Model.SelectedProject is not { } project)
@if (project is null)
{
<h1>Project Not Found</h1>
return;