show buses in a list
This commit is contained in:
parent
38238d29a1
commit
f99c2189e4
@ -5,9 +5,9 @@
|
|||||||
var busRoutes = Model.Routes.OrderBy(r => r.BusNumber).ToList();
|
var busRoutes = Model.Routes.OrderBy(r => r.BusNumber).ToList();
|
||||||
var hasDelays = busRoutes.Any();
|
var hasDelays = busRoutes.Any();
|
||||||
|
|
||||||
var userBusRouteList = string.Join(", ", Model.User.Routes
|
var userBusRoutes = Model.User.Routes
|
||||||
.Select(r => r.BusNumber)
|
.OrderBy(r => r.BusNumber)
|
||||||
.OrderBy(r => r));
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (hasDelays)
|
@if (hasDelays)
|
||||||
@ -25,7 +25,12 @@ else
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
<strong>My Buses: @userBusRouteList</strong>
|
<h4>My Buses</h4>
|
||||||
|
|
||||||
|
@foreach (var busRoute in userBusRoutes)
|
||||||
|
{
|
||||||
|
<div><strong>@busRoute.BusNumber - @busRoute.Label</strong></div>
|
||||||
|
}
|
||||||
|
|
||||||
<ul id="route-list">
|
<ul id="route-list">
|
||||||
@foreach (var busRoute in busRoutes)
|
@foreach (var busRoute in busRoutes)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user