@using PlotLine.Models.WritingSolver @using PlotLine.Services @model SolverDiagnosticPresentation @inject WritingSolverResults Results @inject IHelpService Help @inject WritingProblemEditorial Editorial @inject WritingSolverPayoff Payoff @{ var treatment=Payoff.For(Model.Solution.Id); var personal=Model.Evidence.Count>0; var wide=new[]{"plot-map","chronology","progression","trace"}.Contains(treatment.Family); ViewData["SolverVisualSizes"]=wide?"(max-width: 700px) calc(100vw - 40px), (max-width: 1190px) calc(100vw - 48px), 1140px":"(max-width: 700px) calc(100vw - 40px), (max-width: 1190px) 55vw, 650px"; var tool=Model.Capability; var content=Model.Content; var signedIn=User.Identity?.IsAuthenticated==true; var permanent=Editorial.Find(Model.Solution.Id); var article=content.ArticleKey is null?null:Help.GetByContextKey(content.ArticleKey); }
@if(personal) {

✓ What we think is happening

} else {

Writing problems

}

@Model.Solution.Title

@if(personal) {

@content.Explanation

Why we think that

    @foreach(var evidence in Model.Evidence){
  • @evidence
  • }
} else if(permanent is not null){

@permanent.Recognition

}

How PlotDirector can help

@if(treatment.Family=="progression"){

@tool.Name

@content.Reason

}
@if(treatment.Family!="progression"){

Start here

@tool.Name

@content.Reason

}

@tool.Shows

Look for @content.LookFor

@(signedIn ? "Open "+tool.Name+" in my workspace" : "See how "+tool.Name+" works") @if(signedIn) {

Choose your project first@(tool.WorkspaceRoute.Contains("{characterId}") ? ", then the character you want to follow." : ".")

} else {

Explore the tool without signing in.

}
@if(treatment.Family!="progression"){}
@if(content.Secondary is not null) { var secondary=Results.Capability(content.Secondary); } @if(treatment.Family=="progression"){} @if(permanent is not null) {
@if(personal){

@permanent.Recognition

}
} @if(article is not null) { }
@if(Model.Supporting.Count>0) {

You may also want to look at

@foreach(var item in Model.Supporting) {
@item.Solution.Title @foreach(var evidence in item.Evidence) {

@evidence

}
}
}