~emersion/drmdb

ref: bd3e1f90e7eaa1c7c0c91f817df19705f39c02ef drmdb/public/device.html -rw-r--r-- 1.1 KiB
bd3e1f90Simon Ser Filter properties by driver name 8 months ago
                                                                                
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{{template "head" "Device"}}

<h1>DRM database device</h1>

<p>
	<span class="alt-formats">
		<a href="/devices/{{.Key}}.json">.json</a>
	</span>
	<a href="/">Back to index</a>
</p>

<ul>
	<li><a href="#tree">Latest snapshot</a></li>
	<li><a href="#alt-devices">Other snapshots ({{len .AltDevices}})</a></li>
</ul>

<h2 id="tree">Latest snapshot</h2>

{{define "tree"}}
	<li>{{.Text}}
		{{if gt (len .Children) 0}}
		<ul>
			{{range .Children}}
			{{template "tree" .}}
			{{end}}
		</ul>
		{{end}}
	</li>
{{end}}

<ul class="pre">
	{{range .Tree}}
	{{template "tree" .}}
	{{end}}
</ul>

<h2 id="alt-devices">Other snapshots</h2>

{{if eq (len .AltDevices) 0}}
<p>No other snapshots available</p>
{{else}}
<table>
	<thead>
		<tr>
			<th>Key</th>
			<th>Driver</th>
			<th>Kernel</th>
		</tr>
	</thead>
	<tbody>
		{{range .AltDevices}}
		<tr>
			<td class="pre">
				<a href="/devices/{{.Key}}">{{.Key}}</a>
			</td>
			<td>{{.Driver.Name}} {{.Driver.Version.String}}</td>
			{{if .Driver.Kernel.SysName}}
			<td>{{.Driver.Kernel.SysName}} {{.Driver.Kernel.Release}}</td>
			{{else}}
			<td class="status-unknown">?</td>
			{{end}}
		</tr>
		{{end}}
	</tbody>
</table>
{{end}}