~emersion/drmdb

ref: 618646619857ff648f6729db5738444fb8727b40 drmdb/public/devices.html -rw-r--r-- 875 bytes
61864661Simon Ser go fmt 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
{{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">{{.Driver}}</td>
        </tr>
        {{end}}
    </tbody>
</table>