55 lines
1.5 KiB
HTML
55 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>MatterLinux | Packages</title>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=1200">
|
|
<link href="/style.css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
{{template "parts/bar" .}}
|
|
<main>
|
|
<div class="search">
|
|
<form action="/" method="POST">
|
|
{{if .search}}
|
|
<input placeholder="Hit enter to search" type="text" name="name" value="{{.search}}">
|
|
{{else}}
|
|
<input placeholder="Hit enter to search" type="text" name="name" autofocus>
|
|
{{end}}
|
|
<select name="repo">
|
|
<option value="all">Select repo</option>
|
|
{{range .repos}}
|
|
<option value="{{.Name}}">{{.Name}}</option>
|
|
{{end}}
|
|
</select>
|
|
</form>
|
|
<div class="status">
|
|
<p>Listing {{len .pkgs}} packages</p>
|
|
<p>Last updated: {{.last}}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<table class="pkgs">
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Repo</th>
|
|
<th>Version</th>
|
|
<th>Size</th>
|
|
<th>Description</th>
|
|
<th>Dependencies</th>
|
|
</tr>
|
|
{{range .pkgs}}
|
|
<tr>
|
|
<td><a href="{{.URL}}">{{.Name}}</a></td>
|
|
<td>{{.Repo}}</td>
|
|
<td>{{.Ver }}</td>
|
|
<td>{{.Size}}</td>
|
|
<td>{{.Desc}}</td>
|
|
<td>{{.Deps}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</table>
|
|
</main>
|
|
</body>
|
|
</html>
|