diff --git a/bahnplan.web/Pages/Index.cshtml b/bahnplan.web/Pages/Index.cshtml index e83554e..8dd2fad 100644 --- a/bahnplan.web/Pages/Index.cshtml +++ b/bahnplan.web/Pages/Index.cshtml @@ -23,13 +23,11 @@
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}"))
+ @legs.First().DepStation.Delimit(30)
+ + @DateTime.Parse(legs.First().DepTime).ToString("ddd dd.MM.yyyy, HH:mm") |
- @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}")) + @((from index in from leg in legs where leg.TrainType == "placeholder" select legs.IndexOf(leg) select legs[index - 1].ArrStation.Delimit(30)).ToList().DefaultIfEmpty("-").Aggregate((s1, s2) => $"{s1}, {s2}")) + |
+
+ @legs.Last().ArrStation.Delimit(30)
+ + @DateTime.Parse(legs.Last().DepTime).ToString("ddd dd.MM.yyyy, HH:mm") + |
+
+ @Html.Raw(legs.Where(leg => !string.IsNullOrWhiteSpace(leg.Comment)).Select(p => p.Comment.Replace(", ", " ")).DefaultIfEmpty("").Aggregate((s1, s2) => $"{s1} {s2}")) |
View - | -- Delete Trip + + Delete |