Debian Codegraph @

source/tools/webservices/userreport/templates/reports/opengl_feature.html

raw symbols SCIP
1 {% extends "reports/base.html" %}
2 {% load report_tags %}
3 {% load cycle %}
4
5 {% block css %}
6 ul {
7 margin: 0;
8 }
9
10 .support-status .r {
11 font-weight: bold;
12 }
13
14 .support-status ul {
15 margin: 0;
16 padding: 0;
17 }
18
19 .support-status li {
20 list-style: none;
21 }
22
23 tr.head {
24 background: #ddd;
25 }
26
27 tr.true {
28 background: #f6fff6;
29 }
30
31 tr.true.alt {
32 background: #f0fff0;
33 }
34
35 tr.false {
36 background: #fff6f6;
37 }
38
39 tr.false.alt {
40 background: #fff0f0;
41 }
42
43 tr.data:hover {
44 background: #ddd;
45 }
46 {% endblock %}
47
48 {% block title %}
49 OpenGL capabilities report: {{ feature }}
50 {% endblock %}
51
52 {% block heading %}
53 OpenGL capabilities report: {{ feature }}
54 {% endblock %}
55
56 {% block content %}
57
58 <p>(<a href="{% url userreport.views.report_opengl_index %}">Back to index page.</a>)</p>
59
60 {% if is_extension %}
61
62 <p><a href="{{ feature|glext_spec_link }}">View specification for {{ feature }}.</a></p>
63
64 <table class=support-status>
65
66 {% if values.true %}
67 <tr>
68 <td colspan=4><h2>Supported by
69 {{ usercounts.true }} user{{ usercounts.true|pluralize }}:</h2>
70
71 <tr class=head>
72 <th>Vendor
73 <th>Renderer
74 <th>Users
75 <th>OS
76 <th>Driver versions
77
78 {% for device in values.true|sorteddeviceitems %}
79 <tr class="data true{% safe_cycle '' ' alt'%}">
80 <td>{{ device.0.vendor }}
81 <td class=r><a href="{% url userreport.views.report_opengl_device device.0.device %}">{{ device.0.renderer }}</a>
82 <td>{{ device.1.usercount }}
83 <td>{{ device.0.os }}
84 <td><ul>
85 {% for driver in device.1.drivers|sort %}<li>{{ driver }}{% endfor %}
86 </ul>
87 {% endfor %}
88 {% endif %}
89
90 {% if values.false %}
91 <tr>
92 <td colspan=4><h2>Not supported by
93 {{ usercounts.false }} user{{ usercounts.false|pluralize }}:</h2>
94
95 <tr class=head>
96 <th>Vendor
97 <th>Renderer
98 <th>Users
99 <th>OS
100 <th>Driver versions
101
102 {% for device in values.false|sorteddeviceitems %}
103 <tr class="data false{% safe_cycle '' ' alt'%}">
104 <td>{{ device.0.vendor }}
105 <td class=r><a href="{% url userreport.views.report_opengl_device device.0.device %}">{{ device.0.renderer }}</a>
106 <td>{{ device.1.usercount }}
107 <td>{{ device.0.os }}
108 <td><ul>
109 {% for driver in device.1.drivers|sort %}<li>{{ driver }}{% endfor %}
110 </ul>
111 {% endfor %}
112 {% endif %}
113
114 </table>
115
116 {% else %}
117
118 <table class=support-status>
119 <tr>
120 <th>Value
121 <th>Number of users
122 {% for val in values.keys|sortreversed %}
123 <tr>
124 <td><a href="#{{ val|urlencode }}">{{ val|default_if_none:"Unsupported/unknown" }}</a>
125 <td>{{ usercounts|dictget:val }} ({% widthratio usercounts|dictget:val num_users 100 %}%)
126 {% endfor %}
127 </table>
128
129 <table class=support-status>
130
131 {% for val in values.keys|sortreversed %}
132
133 <tr>
134 <td colspan=4 id="{{ val }}"><h2>Value "{{ val|default_if_none:"Unsupported/unknown" }}"
135 ({{ usercounts|dictget:val }} user{{ usercounts|dictget:val|pluralize }}):</h2>
136
137 <tr class=head>
138 <th>Vendor
139 <th>Renderer
140 <th>Users
141 <th>OS
142 <th>Driver versions
143
144 {% for device in values|dictget:val|sorteddeviceitems %}
145 <tr class="data{% safe_cycle '' ' alt'%}">
146 <td>{{ device.0.vendor }}
147 <td class=r><a href="{% url userreport.views.report_opengl_device device.0.device %}">{{ device.0.renderer }}</a>
148 <td>{{ device.1.usercount }}
149 <td>{{ device.0.os }}
150 <td><ul>
151 {% for driver in device.1.drivers|sort %}<li>{{ driver }}{% endfor %}
152 </ul>
153 {% endfor %}
154
155 {% endfor %}
156
157 </table>
158
159 {% endif %}
160
161 {% endblock %}