update: make things work with the new package system
This commit is contained in:
@ -11,20 +11,20 @@
|
||||
<main>
|
||||
<div class="search">
|
||||
<form action="/" method="GET">
|
||||
{{if .search}}
|
||||
<input placeholder="Hit enter to search" type="text" name="n" value="{{.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="n" autofocus>
|
||||
<input placeholder="Hit enter to search" type="text" name="q" autofocus>
|
||||
{{end}}
|
||||
<select name="r">
|
||||
<option value="all">Select repo</option>
|
||||
{{range .repos}}
|
||||
<option value="{{.Name}}">{{.Name}}</option>
|
||||
<select name="pools">
|
||||
<option value="">Select pool</option>
|
||||
{{range .pools}}
|
||||
<option value="{{.Name}}">{{.Display}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
</form>
|
||||
<div class="status">
|
||||
<p>Listing {{len .pkgs}} packages</p>
|
||||
<p>Listing {{len .list}} packages</p>
|
||||
<p>Last updated: {{.last}}</p>
|
||||
</div>
|
||||
</div>
|
||||
@ -32,20 +32,24 @@
|
||||
<table class="pkgs">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Repo</th>
|
||||
<th>Pool</th>
|
||||
<th>Version</th>
|
||||
<th>Size</th>
|
||||
<th>Description</th>
|
||||
<th>Dependencies</th>
|
||||
</tr>
|
||||
{{range .pkgs}}
|
||||
{{range .list}}
|
||||
<tr>
|
||||
<td><a href="{{.URL}}">{{.Name}}</a></td>
|
||||
<td>{{.Repo}}</td>
|
||||
<td>{{.Ver }}</td>
|
||||
{{if .Pool}}
|
||||
<td>{{.Pool.Display}}</td>
|
||||
{{else}}
|
||||
<td></td>
|
||||
{{end}}
|
||||
<td>{{.Version }}</td>
|
||||
<td>{{.Size}}</td>
|
||||
<td>{{.Desc}}</td>
|
||||
<td>{{.StrDeps}}</td>
|
||||
<td>{{.DependsToStr}}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user