tracker/templates/index.html

68 lines
2.0 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>
2024-08-13 19:12:27 +00:00
<form action="/" method="GET">
<div class="options">
<select name="pools">
<option value="">Select pool</option>
{{range .pools}}
2024-08-25 21:59:15 +00:00
<option value="{{.ID}}">{{.Display}}</option>
2024-01-17 17:06:26 +00:00
{{end}}
</select>
2024-08-13 19:12:27 +00:00
<div class="checkbox">
<input type="checkbox" name="exact" value="1">
<label>Only show exact matches</label>
</div>
<div class="checkbox">
<input type="checkbox" name="json" value="1">
<label>Show results as JSON</label>
</div>
</div>
<div class="search">
{{if .query}}
<input placeholder="Hit enter to search" type="text" name="q" value="{{.query}}">
{{else}}
<input placeholder="Hit enter to search" type="text" name="q" autofocus>
{{end}}
<div class="status">
<p>Listing {{len .list}} packages</p>
<p>Last updated: {{.last}}</p>
</div>
2024-01-17 17:06:26 +00:00
</div>
2024-08-13 19:12:27 +00:00
</form>
<table class="list">
2024-01-17 17:06:26 +00:00
<tr>
<th>Name</th>
<th>Pool</th>
2024-01-17 17:06:26 +00:00
<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 .list}}
2024-01-17 17:06:26 +00:00
<tr>
2024-08-25 21:51:20 +00:00
<td><a href="/p/{{.Name}}/{{.Version}}?p={{.Pool.ID}}">{{.Name}}</a></td>
{{if .Pool}}
<td>{{.Pool.Display}}</td>
{{else}}
<td></td>
{{end}}
<td>{{.Version }}</td>
2024-01-17 17:06:26 +00:00
<td>{{.Size}}</td>
<td>{{.Desc}}</td>
<td>{{.DependsToStr}}</td>
2024-01-17 17:06:26 +00:00
</tr>
{{end}}
</table>
</main>
</body>
</html>