PlotDirector/PlotLine/Views/Writer/Destination.cshtml

32 lines
2.0 KiB
Plaintext

@model WriterDashboardViewModel
@{
ViewData["Title"] = Model.Destination == "Dashboard" ? "Writing Dashboard" : $"Writer · {Model.Destination}";
ViewData["ProjectSection"] = "Writer";
ViewData["ShellClass"] = "pd-writer writer3-shell";
}
<link rel="stylesheet" href="~/css/writer-work.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/writer3.css" asp-append-version="true" />
<div class="writer3 writer3-destination" data-writer-destination="@Model.Destination" data-writing-workspace-launcher data-compact-writer="true" data-project-id="@Model.ProjectID" data-book-id="@Model.BookID">
<partial name="_Writer3Header" model="Model" />
@if(!Model.BookID.HasValue && Model.Destination != "Explore"){
<section class="writer3-panel writer3-empty"><h2>Begin with a book</h2><p>Select a project and book in the application bar. Your chapters, writing focus and recorded work will stay with that book.</p><a class="btn btn-primary writer3-cta" asp-controller="Projects" asp-action="Index">Open your projects <span aria-hidden="true">→</span></a></section>
}else{
@switch(Model.Destination){
case "Write": <partial name="_WriterWrite" model="Model" /> break;
case "Explore": <partial name="_WriterExplore" model="Model" /> break;
case "Plan": <partial name="_WriterPlan" model="Model" /> break;
case "Review": <partial name="_WriterReview" model="Model" /> break;
case "Reflect": <partial name="_WriterReflect" model="Model" /> break;
case "Dashboard": <partial name="_WriterDashboard" model="Model" /> break;
}
}
</div>
@section Scripts {
<script src="~/js/writing-workspace.js" asp-append-version="true"></script>
<script src="~/js/writing-workspace-launcher.js" asp-append-version="true"></script>
@if(Model.Destination == "Write"){
<script src="~/js/writer-objective.js" asp-append-version="true"></script>
<script src="~/js/writer-work.js" asp-append-version="true"></script>
}
}