~emersion/drmdb

ref: e08b971c54320a0b44560fcc1138acf7587ab42b drmdb/public/properties.html -rw-r--r-- 1.2 KiB
e08b971cSimon Ser Cache DB entries in memory with a ring buffer 3 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
{{template "head" "Properties"}}

<div style="margin: 0">
  <h1>DRM database properties</h1>

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

  <table>
      <thead>
          <tr>
              <th>Property</th>
              <th>Type</th>
              <th>Attached to</th>
              {{range $name, $_ := .Drivers}}
              <th>{{$name}}</th>
              {{end}}
          </tr>
      </thead>
      <tbody>
          {{range $name, $prop := .Properties}}
          <tr>
              <td class="pre">
                  <a href="/properties/{{printf "%d" $prop.ObjectType}}/{{$name}}">{{$name}}</a>
              </td>
              <td>{{$prop.Type}}</td>
              <td><a href="?object-type={{printf "%d" $prop.ObjectType}}" title="Only show {{$prop.ObjectType}} properties">
                  {{$prop.ObjectType}}
              </a></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>
</div>

{{template "foot"}}