PlotDirector/PlotLine/Views/Maps/ChooseProject.cshtml

23 lines
749 B
Plaintext

@model IReadOnlyList<PlotLine.Models.Project>
@{
ViewData["Title"] = "Maps";
ViewData["ProjectSection"] = "Maps";
}
<div data-pwa-task class="page-heading compact">
<div><p class="eyebrow">Story geography</p><h1>Maps</h1><p>Choose the project whose world you want to explore.</p></div>
</div>
@if (Model.Count == 0)
{
<p>Create a project to start arranging your story world.</p>
<a class="btn btn-primary" asp-controller="Projects" asp-action="Create">Create project</a>
}
else
{
<div class="list-group">
@foreach (var project in Model)
{
<a class="list-group-item list-group-item-action" asp-action="Index" asp-route-projectId="@project.ProjectID">@project.ProjectName</a>
}
</div>
}