Add ability to browse data
This commit is contained in:
31
templates/browse.gohtml
Normal file
31
templates/browse.gohtml
Normal file
@@ -0,0 +1,31 @@
|
||||
{{- /*gotype: main.BrowseVM */}}
|
||||
{{define "browse"}}
|
||||
{{template "header" "Search Results"}}
|
||||
<table border="1">
|
||||
<tr>
|
||||
<th>QR</th>
|
||||
<th>Type</th>
|
||||
<th>Name</th>
|
||||
<th>Brand</th>
|
||||
<th>Description</th>
|
||||
{{if .HasRam}}
|
||||
<th>RAM Type</th>
|
||||
<th>RAM Capacity</th>
|
||||
{{end}}
|
||||
</tr>
|
||||
{{range .Assets}}
|
||||
<tr>
|
||||
<td><a href="/device?id={{.Qr}}">{{.Qr}}</a></td>
|
||||
<td><a href="/device?id={{.Qr}}">{{.Type | formatType}}</a></td>
|
||||
<td>{{.Name}}</td>
|
||||
<td>{{.Brand}}</td>
|
||||
<td>{{.Description}}</td>
|
||||
{{if $.HasRam}}
|
||||
<td>{{.RamType}}</td>
|
||||
<td>{{.RamCapacity | formatMemorySize}}</td>
|
||||
{{end}}
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
{{template "footer"}}
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user