~emersion/drmdb

ref: 8122e062f3db2ea9a03700cdbcbf7c8714025c79 drmdb/public/devices.html -rw-r--r-- 977 bytes
8122e062Simon Ser Add driver filter to device list 7 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
{{template "head" "Devices"}}

<h1>DRM database devices</h1>

<p><a href="/">Back to index</a></p>

<table>
    <thead>
        <tr>
            <th>ID</th>
            <th>Bus type</th>
            <th>Vendor</th>
            <th>Name</th>
            <th>Driver</th>
        </tr>
    </thead>
    <tbody>
        {{range .Devices}}
        <tr>
            <td class="pre">
                <a href="/devices/{{.Key}}">{{.BusID}}</a>
            </td>
            <td>{{.BusType}}</td>
            {{if .Vendor}}
            <td>{{.Vendor}}</td>
            {{else}}
            <td class="status-unknown">?</td>
            {{end}}
            {{if .Name}}
            <td>{{.Name}}</td>
            {{else}}
            <td class="status-unknown">?</td>
            {{end}}
            <td class="pre">
                <a href="?driver={{.Driver}}" title="Only show {{.Driver}} devices">{{.Driver}}</a>
            </td>
        </tr>
        {{end}}
    </tbody>
</table>