~emersion/drmdb

ref: 000801dc63666c8e884631a529e1b4ef57bf8f2f drmdb/public/properties.html -rw-r--r-- 866 bytes
000801dcSimon Ser Simplify templates 2 years 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
{{template "head" "Properties"}}

<h1>DRM database properties</h1>

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

<table>
    <thead>
        <tr>
            <th>Property</th>
            <th>Type</th>
            <th>Object type</th>
            {{range $name, $_ := .Drivers}}
            <th>{{$name}}</th>
            {{end}}
        </tr>
    </thead>
    <tbody>
        {{range $name, $prop := .Properties}}
        <tr>
            <td class="pre">{{$name}}</td>
            <td>{{$prop.Type}}</td>
            <td>{{$prop.ObjectType}}</td>
            {{range $drv, $_ := $.Drivers}}
            {{if index $prop.Drivers $drv}}
            <td class="status-supported"></td>
            {{else}}
            <td class="status-unsupported"></td>
            {{end}}
            {{end}}
        </tr>
        {{end}}
    </tbody>
</table>

{{template "foot"}}