first commit
This commit is contained in:
54
templates/index.html
Normal file
54
templates/index.html
Normal file
@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MatterLinux | Tracker</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 total of {{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>Desc</th>
|
||||
<th>Sum</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>{{.Sum }}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user