tracker/templates/index.html

55 lines
1.5 KiB
HTML
Raw Normal View History

2024-01-17 17:06:26 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
2024-01-17 17:15:46 +00:00
<title>MatterLinux | Packages</title>
2024-01-17 17:06:26 +00:00
<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">
2024-01-17 17:15:46 +00:00
<p>Listing {{len .pkgs}} packages</p>
2024-01-17 17:06:26 +00:00
<p>Last updated: {{.last}}</p>
</div>
</div>
<table class="pkgs">
<tr>
<th>Name</th>
<th>Repo</th>
<th>Version</th>
<th>Size</th>
2024-01-17 17:54:37 +00:00
<th>Description</th>
<th>Dependencies</th>
2024-01-17 17:06:26 +00:00
</tr>
{{range .pkgs}}
<tr>
<td><a href="{{.URL}}">{{.Name}}</a></td>
<td>{{.Repo}}</td>
<td>{{.Ver }}</td>
<td>{{.Size}}</td>
<td>{{.Desc}}</td>
2024-01-17 17:54:37 +00:00
<td>{{.Deps}}</td>
2024-01-17 17:06:26 +00:00
</tr>
{{end}}
</table>
</main>
</body>
</html>