@page @using Microsoft.AspNetCore.Http @using Microsoft.AspNetCore.Http.Extensions @using LinqToDB @using bahnplan.web.database @model IndexModel @{ ViewData["Title"] = "Home"; }
Please log in to see your personal plan.
} else {Here are your planned trips.
Date | Origin | Via | Destination | Comments | Actions | Danger zone |
---|---|---|---|---|---|---|
@Html.Raw(dates) | @Html.Raw(legs.First().DepStation.PadRight(30, ' ').Substring(0, 30).TrimEnd()) | @((from index in from leg in legs where leg.TrainType == "placeholder" select legs.IndexOf(leg) select legs[index - 1].ArrStation).ToList().DefaultIfEmpty("-").Aggregate((s1, s2) => $"{s1}, {s2}")) | @Html.Raw(legs.Last().ArrStation.PadRight(30, ' ').Substring(0, 30).TrimEnd()) |
@Html.Raw(legs.Where(leg => !string.IsNullOrWhiteSpace(leg.Comment)).Select(p => p.Comment).DefaultIfEmpty("").Aggregate((s1, s2) => $"{s1} {s2}")) |
View | Delete Trip |