aboutsummaryrefslogtreecommitdiffstats
path: root/templates/bom_view.html
blob: 260621714a8ca9825c01ea2655d302639c5a518d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{{ template "HEADER" }}
<h1>{{ .BomMeta.Name }} is a bom.</h1>
<b>Owner: </b>{{ .BomMeta.Owner }}<br>
{{ if .BomMeta.Homepage }}<b>Homepage: </b>{{ .BomMeta.Homepage }}<br>{{ end }}
{{ if .BomMeta.Description }}<b>Description: </b>{{ .BomMeta.Description }}<br>{{ end }}
<b>Version: </b>{{ .BomMeta.HeadVersion }} (at head)<br>
<b>Created: </b>{{ .Bom.Created }}<br>
{{ if .Bom.Progeny}}<b>Source: </b>{{ .Bom.Progeny }}<br>{{ end }}
<table>
<tr>
  <th>qty
  <th>elements
  <th>manufacturer
  <th>mpn
  <th>function
  <th>form_factor
  <th>specs
  <th>category
  <th>tag
  <th>comment
</tr>
{{ range .Bom.LineItems }}
<tr>
  <td>{{ len .Elements }}
  <td>{{ range .Elements }}{{ if . }}{{ . }} {{ end }}{{ end }}
  <td>{{ .Manufacturer }}
  <td>{{ .Mpn }}
  <td>{{ .Function }}
  <td>{{ .FormFactor }}
  <td>{{ .Specs }}
  <td>{{ .Category }}
  <td>{{ .Tag }}
  <td>{{ .Comment }}
</tr>
{{ end }}
</table>
{{ template "FOOTER" }}