Add ability to browse data
This commit is contained in:
33
templates/device.gohtml
Normal file
33
templates/device.gohtml
Normal 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}}
|
||||
Reference in New Issue
Block a user