Skip to content

Commit

Permalink
Add improved host list ui
Browse files Browse the repository at this point in the history
  • Loading branch information
georg-jung committed Dec 12, 2019
1 parent a51d68b commit 91a1326
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions WoL/Pages/Hosts.razor
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
@page "/"
@page "/"

@using WoL.Data
@using WoL.Models
@using WoL.Extensions
@inject IHostService HostService

<h1>Wake-on-LAN</h1>
<div class="container">
<h2>Wake-on-LAN</h2>

<hr />

@if (hosts == null)
{
Expand Down Expand Up @@ -37,7 +40,14 @@ else
}
</tbody>
</table>
@if (hosts.Count == 0)
{
<p>
Currently, there are no saved hosts. <a href="/AddHost">Click here</a> to add one.
</p>
}
}
</div>

@code {
private List<Host> hosts;
Expand Down

0 comments on commit 91a1326

Please sign in to comment.