From 70d93299cd51d74529a6288c199f7c3024a1c970 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Fri, 12 Jun 2020 11:38:59 +0200 Subject: [PATCH] plaintext view now shows comments --- bahnplan.web/Pages/Trip.cshtml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bahnplan.web/Pages/Trip.cshtml b/bahnplan.web/Pages/Trip.cshtml index 46cbf10..fe04ae2 100644 --- a/bahnplan.web/Pages/Trip.cshtml +++ b/bahnplan.web/Pages/Trip.cshtml @@ -40,7 +40,7 @@ @foreach (var leg in Model.Legs) { if (leg.TrainType == "placeholder") {
- ...    ..:.. ...                  -   ... ...   - ..:.. ... + ...    ..:.. ...                  -   ... ...   - ..:.. ...                  ...
continue; } @@ -52,8 +52,9 @@ var arrt = arrtime.ToString("HH:mm"); var arrst = leg.ArrStation.PadRight(20, ' ').Substring(0, 20).Replace(" ", " "); var line = leg.TrainType.PadLeft(5).Replace(" ", " ") + " " + leg.TrainNr.ToString().PadRight(5).Replace(" ", " "); + var comment = leg.Comment;
- @dept @Html.Raw(depst) - @Html.Raw(line) - @arrt @Html.Raw(arrst) + @dept @Html.Raw(depst) - @Html.Raw(line) - @arrt @Html.Raw(arrst) @(string.IsNullOrWhiteSpace(comment) ? "..." : comment)
} @@ -113,7 +114,7 @@ @leg.TrainType @leg.TrainNr @if (!Request.Query.ContainsKey("edit")) { - + @if (!string.IsNullOrWhiteSpace(leg.Comment)) { @Html.Raw(leg.Comment) }