Skip to content

Commit

Permalink
update css for cancel and change of origin #6
Browse files Browse the repository at this point in the history
  • Loading branch information
blueghostuk committed Nov 10, 2013
1 parent 9b5311d commit 24876d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion TrainDelayed/Scripts/app/searchModels.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ var TrainDelayed;

if (train && train.Cancellations.length > 0) {
var can = train.Cancellations[0];
var canTxt = can.Type;
var canTxt = "Cancelled " + can.Type;
if (can.CancelledAtStanoxCode) {
var canTiploc = TrainDelayed.StationTiploc.findStationTiploc(can.CancelledAtStanoxCode, tiplocs);
this.cancelledAtStation = canTiploc.Description.toLowerCase();
Expand Down
2 changes: 1 addition & 1 deletion TrainDelayed/Scripts/app/searchModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ module TrainDelayed.Search {

if (train && train.Cancellations.length > 0) {
var can = train.Cancellations[0];
var canTxt = can.Type;
var canTxt = "Cancelled " + can.Type;
if (can.CancelledAtStanoxCode) {
var canTiploc = StationTiploc.findStationTiploc(can.CancelledAtStanoxCode, tiplocs);
this.cancelledAtStation = canTiploc.Description.toLowerCase();
Expand Down
2 changes: 1 addition & 1 deletion TrainDelayed/search-results.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
</tr>
</thead>
<tbody data-bind="foreach: results">
<tr data-bind="css: { info: changeOfOrigin, error: cancelled }, attr: { Title: title }">
<tr data-bind="css: { warning: changeOfOrigin, danger: cancelled }, attr: { Title: title }">
<!-- 1 -->
<td><a data-bind="text: headcode, attr: { href: url }" target="_blank" title="View the full details of this train"></a></td>
<!-- 2 -->
Expand Down

0 comments on commit 24876d5

Please sign in to comment.