plaintext view now shows comments
This commit is contained in:
parent
684419a856
commit
70d93299cd
|
@ -40,7 +40,7 @@
|
|||
@foreach (var leg in Model.Legs) {
|
||||
if (leg.TrainType == "placeholder") {
|
||||
<div>
|
||||
... ..:.. ... - ... ... - ..:.. ...
|
||||
... ..:.. ... - ... ... - ..:.. ... ...
|
||||
</div>
|
||||
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;
|
||||
<div>
|
||||
@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)
|
||||
</div>
|
||||
}
|
||||
</code>
|
||||
|
@ -113,7 +114,7 @@
|
|||
</td>
|
||||
<td>@leg.TrainType @leg.TrainNr</td>
|
||||
@if (!Request.Query.ContainsKey("edit")) {
|
||||
<td class="text-center">
|
||||
<td>
|
||||
@if (!string.IsNullOrWhiteSpace(leg.Comment)) {
|
||||
@Html.Raw(leg.Comment)
|
||||
}
|
||||
|
|
Reference in a new issue