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)
}
|