Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
searx-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
searx-engine
Commits
57c6fa6e
Commit
57c6fa6e
authored
Dec 09, 2019
by
Markus Heiser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
theme: oscar - fix auto-submit on language seletion
Signed-off-by:
Markus Heiser
<
markus.heiser@darmarit.de
>
parent
2a5c39e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
languages.html
searx/templates/oscar/languages.html
+7
-11
No files found.
searx/templates/oscar/languages.html
View file @
57c6fa6e
{% if preferences -%}
<select
class=
"language custom-select form-control"
id=
"language"
name=
"language"
>
<select
class=
"custom-select form-control"
name=
'language'
>
<option
value=
"all"
{%
if
current_language =
=
'
all
'
%}
selected=
"selected"
{%
endif
%}
>
{{ _('Default language') }}
</option>
{%- else -%}
{%- for lang_id,lang_name,country_name,english_name in language_codes | sort(attribute=1) -%}
<select
class=
"time_range custom-select form-control"
id=
'language'
name=
'language'
>
<option
value=
"{{ lang_id }}"
{%
if
lang_id =
=
current_language
%}
selected=
"selected"
{%
endif
%}
>
{%- endif -%}
{{- lang_name }} {% if country_name %}({{ country_name }}) {% endif %}- {{ lang_id -}}
<option
value=
"all"
{%
if
current_language =
=
'
all
'
%}
selected=
"selected"
{%
endif
%}
>
{{ _('Default language') }}
</option>
</option>
{%- for lang_id,lang_name,country_name,english_name in language_codes | sort(attribute=1) -%}
{%- endfor -%}
<option
value=
"{{ lang_id }}"
{%
if
lang_id =
=
current_language
%}
selected=
"selected"
{%
endif
%}
>
{{- lang_name }} {% if country_name %}({{ country_name }}) {% endif %}- {{ lang_id -}}
</option>
{%- endfor -%}
</select>
</select>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment