@foreach(var view in new[]{"list","board","schedule"}){}
Add planned activity
@if(active.Length==0){
No planned activities yet. Add one when it helps you organise your work.
}
@if(Model.View=="board"){
@foreach(var status in PlotLine.Models.WriterActivity.Statuses){
@status
@foreach(var item in active.Where(x=>x.Status==status)){}}
}
else if(Model.View=="schedule"){
Dated activities
@foreach(var item in active.Where(x=>x.TargetDate.HasValue).OrderBy(x=>x.TargetDate)){}
Undated activities
@foreach(var item in active.Where(x=>!x.TargetDate.HasValue)){}
Existing allocated writing time and schedules are shown below. Target dates do not reserve writing time or generate sessions.
}else{@foreach(var item in active){}}
Archived activities (@Model.Activities.Count(x=>x.IsArchived))@foreach(var item in Model.Activities.Where(x=>x.IsArchived)){