forked from Ponysearch/Ponysearch
[enh] add shortcut column to search engines table in preferences - fixes #230
This commit is contained in:
parent
bab5efeac9
commit
c54a0e81ff
2 changed files with 6 additions and 2 deletions
|
@ -98,6 +98,7 @@
|
||||||
<table class="engine-table">
|
<table class="engine-table">
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ _('Engine name') }}</th>
|
<th>{{ _('Engine name') }}</th>
|
||||||
|
<th>{{ _('Shortcut') }}</th>
|
||||||
<th>{{ _('Category') }}</th>
|
<th>{{ _('Category') }}</th>
|
||||||
<th>{{ _('Allow') }} / {{ _('Block') }}</th>
|
<th>{{ _('Allow') }} / {{ _('Block') }}</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -106,7 +107,8 @@
|
||||||
|
|
||||||
{% if not search_engine.private %}
|
{% if not search_engine.private %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})‎</td>
|
<td>{{ search_engine.name }}</td>
|
||||||
|
<td>{{ shortcuts[search_engine.name] }}</td>
|
||||||
<td>{{ _(categ) }}</td>
|
<td>{{ _(categ) }}</td>
|
||||||
<td class="engine_checkbox">
|
<td class="engine_checkbox">
|
||||||
<input type="checkbox" id="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}" name="engine_{{ search_engine.name }}__{{ categ }}"{% if (search_engine.name, categ) in disabled_engines %} checked="checked"{% endif %} />
|
<input type="checkbox" id="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}" name="engine_{{ search_engine.name }}__{{ categ }}"{% if (search_engine.name, categ) in disabled_engines %} checked="checked"{% endif %} />
|
||||||
|
|
|
@ -95,6 +95,7 @@
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ _('Engine name') }}</th>
|
<th>{{ _('Engine name') }}</th>
|
||||||
|
<th>{{ _('Shortcut') }}</th>
|
||||||
<th>{{ _('Category') }}</th>
|
<th>{{ _('Category') }}</th>
|
||||||
<th>{{ _('Allow') }} / {{ _('Block') }}</th>
|
<th>{{ _('Allow') }} / {{ _('Block') }}</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -103,7 +104,8 @@
|
||||||
|
|
||||||
{% if not search_engine.private %}
|
{% if not search_engine.private %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})‎</td>
|
<td>{{ search_engine.name }}</td>
|
||||||
|
<td>{{ shortcuts[search_engine.name] }}</td>
|
||||||
<td>{{ _(categ) }}</td>
|
<td>{{ _(categ) }}</td>
|
||||||
<td class="engine_checkbox">
|
<td class="engine_checkbox">
|
||||||
<input type="checkbox" id="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}" name="engine_{{ search_engine.name }}__{{ categ }}"{% if (search_engine.name, categ) in disabled_engines %} checked="checked"{% endif %} />
|
<input type="checkbox" id="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}" name="engine_{{ search_engine.name }}__{{ categ }}"{% if (search_engine.name, categ) in disabled_engines %} checked="checked"{% endif %} />
|
||||||
|
|
Loading…
Reference in a new issue