added monitor history and pilots page.
set home page. (monitor page)
This commit is contained in:
parent
e690c1e6a9
commit
ba91962eac
@ -9,14 +9,15 @@ namespace RaceLapTimer.Modules
|
||||
{
|
||||
public class MonitorModule:NancyModule
|
||||
{
|
||||
public MonitorModule() : base("/monitor")
|
||||
public MonitorModule()
|
||||
{
|
||||
Get[""] = args => GetMonitorHomePage(args);
|
||||
Get["/monitor"] = args => GetMonitorHomePage(args);
|
||||
}
|
||||
|
||||
private dynamic GetMonitorHomePage(dynamic args)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
return View["Monitor.cshtml"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -16,7 +16,7 @@ namespace RaceLapTimer.Modules
|
||||
|
||||
private dynamic GetPilotsListHomePage(dynamic args)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
return View["Pilots.cshtml"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,7 +18,12 @@ namespace RaceLapTimer.Modules
|
||||
Get[""] = args => GetSystemHomePage(args);
|
||||
Get["/pilot"] = args => GetSystemPilotPage(args);
|
||||
Get["/soundfile"] = args => GetSystemSoundFilePage(args);
|
||||
Get["/configuraiton"] = args => GetConfigurationHomePage(args);
|
||||
}
|
||||
|
||||
private dynamic GetConfigurationHomePage(dynamic args)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
//this will return system configuration settings home page.
|
||||
|
||||
@ -131,12 +131,19 @@
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="packages.config" />
|
||||
<None Include="www\Views\History.cshtml" />
|
||||
<None Include="www\Views\index.cshtml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="www\Views\login.cshtml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="www\Views\Monitor.cshtml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="www\Views\Pilots.cshtml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="www\Views\RaceDirector.cshtml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
|
||||
59
RaceLapTimer/RaceLapTimer/www/Views/History.cshtml
Normal file
59
RaceLapTimer/RaceLapTimer/www/Views/History.cshtml
Normal file
@ -0,0 +1,59 @@
|
||||
@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<dynamic>
|
||||
@{
|
||||
Layout = "razor-layout.cshtml";
|
||||
ViewBag.Title = "History";
|
||||
ViewBag.CreateRaceApiEndpoint = "/api/racesession/create";
|
||||
}
|
||||
<h3>@ViewBag.Title</h3>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Session</td>
|
||||
<td>Mode</td>
|
||||
<td>Pilots</td>
|
||||
<td>Total Laps</td>
|
||||
<td>Fastest Lap</td>
|
||||
<td>Fastest Pilot</td>
|
||||
<td>Average Lap Time</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>None</td>
|
||||
<td>0</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>None</td>
|
||||
<td>0</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>None</td>
|
||||
<td>0</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>None</td>
|
||||
<td>0</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
38
RaceLapTimer/RaceLapTimer/www/Views/Monitor.cshtml
Normal file
38
RaceLapTimer/RaceLapTimer/www/Views/Monitor.cshtml
Normal file
@ -0,0 +1,38 @@
|
||||
@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<dynamic>
|
||||
@{
|
||||
Layout = "razor-layout.cshtml";
|
||||
ViewBag.Title = "Monitor";
|
||||
}
|
||||
<h3>@ViewBag.Title</h3>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Race Name</td>
|
||||
<td>Pilot Count</td>
|
||||
<td>Lap Count</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>None</td>
|
||||
<td>0</td>
|
||||
<td>10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>None</td>
|
||||
<td>0</td>
|
||||
<td>10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>None</td>
|
||||
<td>0</td>
|
||||
<td>10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>None</td>
|
||||
<td>0</td>
|
||||
<td>10</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
43
RaceLapTimer/RaceLapTimer/www/Views/Pilots.cshtml
Normal file
43
RaceLapTimer/RaceLapTimer/www/Views/Pilots.cshtml
Normal file
@ -0,0 +1,43 @@
|
||||
@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<dynamic>
|
||||
@{
|
||||
Layout = "razor-layout.cshtml";
|
||||
ViewBag.Title = "Pilots";
|
||||
}
|
||||
<h3>@ViewBag.Title</h3>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>Quad</td>
|
||||
<td>Total Races</td>
|
||||
<td>Total Laps</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>None</td>
|
||||
<td>0</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>None</td>
|
||||
<td>0</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>None</td>
|
||||
<td>0</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>None</td>
|
||||
<td>0</td>
|
||||
<td>10</td>
|
||||
<td>10</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
Loading…
Reference in New Issue
Block a user