Add ability to browse data

This commit is contained in:
2025-03-24 12:26:31 +01:00
parent c459148d33
commit dbfbd6e164
9 changed files with 272 additions and 5 deletions

33
templates/device.gohtml Normal file
View File

@@ -0,0 +1,33 @@
{{- /*gotype: main.DeviceVM */}}
{{define "device"}}
{{template "header" "Device Details"}}
<table border="1">
<tr>
<td>Name:</td>
<td>{{.Name}}</td>
</tr>
<tr>
<td>Brand:</td>
<td>{{.Brand}}</td>
</tr>
<tr>
<td>Type:</td>
<td>{{.Type}}</td>
</tr>
<tr>
<td>Description:</td>
<td>{{.Description}}</td>
</tr>
{{if eq .Type "ram"}}
<tr>
<td>RAM Type:</td>
<td>{{.RamType}}</td>
</tr>
<tr>
<td>RAM Capacity:</td>
<td>{{.RamCapacity | formatMemorySize}}</td>
</tr>
{{end}}
</table>
{{template "footer"}}
{{end}}