better ui
This commit is contained in:
1 parent
e0b0ca48f2
commit
84abee712d
6 files changed
+66
-17
No files matched your search
@@ -1,9 +1,14 @@
|
||||
@using System.Runtime.InteropServices.JavaScript
|
||||
@model YongeStreet.Controllers.CityModel
|
||||
@{
|
||||
ViewData["Title"] = "La Province";
|
||||
}
|
||||
|
||||
|
||||
<div>
|
||||
<h2>@Model.City - @Model.Date.ToString("yyyy-MM-dd")</h2>
|
||||
</div>
|
||||
|
||||
<div class="uk-height-large uk-flex uk-flex-center uk-flex-middle uk-background-cover uk-light"
|
||||
style="background-color: black"
|
||||
id="leaflet-map"
|
||||
@@ -19,10 +24,25 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach(var stats in Model.CityRoadLengthStats)
|
||||
|
||||
@foreach (var stats in Model.CityRoadLengthStats)
|
||||
{
|
||||
<tr>
|
||||
<td>@stats.Year</td>
|
||||
<td>
|
||||
@if (stats.Date != Model.Date)
|
||||
{
|
||||
@Html.ActionLink(stats.Date.ToString("yyyy-MM-dd"),
|
||||
"City",
|
||||
"Home",
|
||||
new { City = Model.City, Date = stats.Date.ToString("yyyy-MM-dd"), })
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@stats.Date.ToString("yyyy-MM-dd")
|
||||
}
|
||||
|
||||
</td>
|
||||
<td>@((stats.MunicipalRoadLength / 1000).ToString("N"))</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
Reference in new issue
Block a user