Skip to content

Commit

Permalink
Format Origin
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanp0 committed Jan 22, 2022
1 parent 4ccb22b commit 273f00d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/departureboard/tmpl/board.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
a {
color: grey;
}

.origin {
color: grey;
}
</style>
<meta http-equiv="refresh" content="15">
</head>
Expand All @@ -84,7 +88,7 @@
<tr><td>{{.FormatArrival}}</td>
<td>{{.FormatDeparture}}</td>
<td>{{.Headcode}}</td>
<td>{{if ne .Origin ""}}{{.Origin}} - {{end}}{{.Destination}}</td>
<td>{{if ne .Origin ""}}<span class="origin">{{.Origin}} - </span>{{end}}{{.Destination}}</td>
<td>{{if and (ne .ActualPlatform "") (ne .Platform .ActualPlatform)}}<span class="plataltered">{{.Platform}}</span> <span class="platalteration">{{.ActualPlatform}}</span>{{else}} {{.Platform}} {{end}}</td>
<td>{{.OnTimeMessage}}</td></tr>
{{ end }}
Expand Down

0 comments on commit 273f00d

Please sign in to comment.