on master help sign in
[fix] use scope attribute to describe properties in the engine preferences table
commitfce2d496514f4ddfa725e9796c5b70e37a4dec74 authorAdam Tauber <asciimoo@gmail.com> dateThu 25 Jun 2020, 15:51 (6 years ago) parent5ca5286
1 file changed+18−18
searx/templates/oscar/preferences.html+18−18
searx/templates/oscar/preferences.html+18−18
@@ -173,23 +173,23 @@
173173 <table class="table table-hover table-condensed table-striped">
174174 <tr>
175175 {% if not rtl %}
176− <th>{{ _("Allow") }}</th>
177− <th>{{ _("Engine name") }}</th>
178− <th>{{ _("Shortcut") }}</th>
179− <th>{{ _("Selected language") }}</th>
180− <th>{{ _("SafeSearch") }}</th>
181− <th>{{ _("Time range") }}</th>
182− <th>{{ _("Avg. time") }}</th>
183− <th>{{ _("Max time") }}</th>
176+ <th scope="col">{{ _("Allow") }}</th>
177+ <th scope="col">{{ _("Engine name") }}</th>
178+ <th scope="col">{{ _("Shortcut") }}</th>
179+ <th scope="col">{{ _("Selected language") }}</th>
180+ <th scope="col">{{ _("SafeSearch") }}</th>
181+ <th scope="col">{{ _("Time range") }}</th>
182+ <th scope="col">{{ _("Avg. time") }}</th>
183+ <th scope="col">{{ _("Max time") }}</th>
184184 {% else %}
185− <th class="text-right">{{ _("Max time") }}</th>
186− <th class="text-right">{{ _("Avg. time") }}</th>
187− <th class="text-right">{{ _("Time range") }}</th>
188− <th class="text-right">{{ _("SafeSearch") }}</th>
189− <th class="text-right">{{ _("Selected language") }}</th>
190− <th class="text-right">{{ _("Shortcut") }}</th>
191− <th class="text-right">{{ _("Engine name") }}</th>
192− <th class="text-right">{{ _("Allow") }}</th>
185+ <th scope="col" class="text-right">{{ _("Max time") }}</th>
186+ <th scope="col" class="text-right">{{ _("Avg. time") }}</th>
187+ <th scope="col" class="text-right">{{ _("Time range") }}</th>
188+ <th scope="col" class="text-right">{{ _("SafeSearch") }}</th>
189+ <th scope="col" class="text-right">{{ _("Selected language") }}</th>
190+ <th scope="col" class="text-right">{{ _("Shortcut") }}</th>
191+ <th scope="col" class="text-right">{{ _("Engine name") }}</th>
192+ <th scope="col" class="text-right">{{ _("Allow") }}</th>
193193 {% endif %}
194194 </tr>
195195 {% for search_engine in engines_by_category[categ] %}
@@ -199,7 +199,7 @@
199199 <td class="onoff-checkbox">
200200 {{ checkbox_toggle('engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_'), (search_engine.name, categ) in disabled_engines) }}
201201 </td>
202− <th>{{ search_engine.name }}</th>
202+ <th scope="row">{{ search_engine.name }}</th>
203203 <td class="name">{{ shortcuts[search_engine.name] }}</td>
204204 <td>{{ support_toggle(stats[search_engine.name].supports_selected_language) }}</td>
205205 <td>{{ support_toggle(search_engine.safesearch==True) }}</td>
@@ -213,7 +213,7 @@
213213 <td>{{ support_toggle(search_engine.safesearch==True) }}</td>
214214 <td>{{ support_toggle(stats[search_engine.name].supports_selected_language) }}</td>
215215 <td>{{ shortcuts[search_engine.name] }}</td>
216− <th>{{ search_engine.name }}</th>
216+ <th scope="row">{{ search_engine.name }}</th>
217217 <td class="onoff-checkbox">
218218 {{ checkbox_toggle('engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_'), (search_engine.name, categ) in disabled_engines) }}
219219 </td>