Small improvements
- Removed fake favicon in favor of 204 - Improved table actions (mobile)
This commit is contained in:
parent
e171a7fa09
commit
68845fc715
|
@ -24,19 +24,21 @@
|
|||
<td>{{$d.Alias}}</td>
|
||||
<td>{{$d.MAC}}</td>
|
||||
<td>{{$d.IP}}</td>
|
||||
<td class="actions">
|
||||
<form action="/wake" method="post">
|
||||
<input type="text" name="Alias" value="{{$d.Alias}}" hidden>
|
||||
<input type="text" name="MAC" value="{{$d.MAC}}" hidden>
|
||||
<input type="text" name="IP" value="{{$d.IP}}" hidden>
|
||||
<input type="submit" value="Wake">
|
||||
</form>
|
||||
<form action="/remove" method="post">
|
||||
<input type="text" name="Alias" value="{{$d.Alias}}" hidden>
|
||||
<input type="text" name="MAC" value="{{$d.MAC}}" hidden>
|
||||
<input type="text" name="IP" value="{{$d.IP}}" hidden>
|
||||
<input type="submit" value="Remove">
|
||||
</form>
|
||||
<td>
|
||||
<div class="actions">
|
||||
<form action="/wake" method="post">
|
||||
<input type="text" name="Alias" value="{{$d.Alias}}" hidden>
|
||||
<input type="text" name="MAC" value="{{$d.MAC}}" hidden>
|
||||
<input type="text" name="IP" value="{{$d.IP}}" hidden>
|
||||
<input type="submit" value="Wake">
|
||||
</form>
|
||||
<form action="/remove" method="post">
|
||||
<input type="text" name="Alias" value="{{$d.Alias}}" hidden>
|
||||
<input type="text" name="MAC" value="{{$d.MAC}}" hidden>
|
||||
<input type="text" name="IP" value="{{$d.IP}}" hidden>
|
||||
<input type="submit" value="Remove">
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
|
@ -63,10 +65,9 @@
|
|||
}
|
||||
|
||||
.actions {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.actions > form {
|
||||
display: contents;
|
||||
flex-flow: row wrap;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
</style>
|
|
@ -5,7 +5,6 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Small web server to send Wake-on-LAN requests to its local network">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<link rel="icon" href="data:,">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<title>{{ .Title }} - miniwol</title>
|
||||
</head>
|
||||
|
|
|
@ -28,6 +28,7 @@ func Run() error {
|
|||
|
||||
e.GET("/", index)
|
||||
e.GET("/style.css", style)
|
||||
e.GET("/favicon.ico", favicon)
|
||||
e.POST("/auth", auth)
|
||||
e.POST("/deauth", withAuth(deauth))
|
||||
e.POST("/add", withAuth(add))
|
||||
|
@ -76,3 +77,7 @@ func style(c echo.Context) error {
|
|||
}
|
||||
return c.Blob(200, "text/css", styleData)
|
||||
}
|
||||
|
||||
func favicon(c echo.Context) error {
|
||||
return c.NoContent(204)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user