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
f34ac587
Commit
f34ac587
authored
Aug 06, 2019
by
Dalf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[mod] tidy oscar HTML output
parent
e9311ee7
Changes
12
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
339 additions
and
347 deletions
+339
-347
advanced.html
searx/templates/oscar/advanced.html
+5
-4
base.html
searx/templates/oscar/base.html
+12
-9
categories.html
searx/templates/oscar/categories.html
+9
-9
infobox.html
searx/templates/oscar/infobox.html
+17
-16
languages.html
searx/templates/oscar/languages.html
+7
-7
macros.html
searx/templates/oscar/macros.html
+23
-23
navbar.html
searx/templates/oscar/navbar.html
+8
-8
default.html
searx/templates/oscar/result_templates/default.html
+31
-31
images.html
searx/templates/oscar/result_templates/images.html
+36
-49
results.html
searx/templates/oscar/results.html
+156
-156
search.html
searx/templates/oscar/search.html
+24
-24
time-range.html
searx/templates/oscar/time-range.html
+11
-11
No files found.
searx/templates/oscar/advanced.html
View file @
f34ac587
<input
type=
"checkbox"
name=
"advanced_search"
id=
"check-advanced"
{%
if
advanced_search
%}
checked=
"checked"
{%
endif
%}
>
<label
for=
"check-advanced"
>
<label
for=
"check-advanced"
>
{{- "" -}}
<span
class=
"glyphicon glyphicon-cog"
></span>
{{
_('Advanced settings')
}}
{{
- _('Advanced settings') -
}}
</label>
<div
id=
"advanced-search-container"
>
{% include 'oscar/categories.html' %}
<div
class=
"row"
>
<div
class=
"col-xs-6"
>
{%
include 'oscar/time-range.html'
%}
{%
- include 'oscar/time-range.html' -
%}
</div>
<div
class=
"col-xs-6"
>
{%
include 'oscar/languages.html'
%}
{%
- include 'oscar/languages.html' -
%}
</div>
</div>
</div>
searx/templates/oscar/base.html
View file @
f34ac587
...
...
@@ -10,16 +10,17 @@
<meta
name=
"referrer"
content=
"no-referrer"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1 , maximum-scale=1.0, user-scalable=1"
/>
{% block meta %}{% endblock %}
<title>
{% block title %}{% endblock %}{{ instance_name }}
</title>
<title>
{% block title %}{% endblock %}{{ instance_name }}
</title>
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='css/bootstrap.min.css') }}"
type=
"text/css"
/>
{% if preferences.get_value('oscar-style') %}
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='css/'+preferences.get_value('oscar-style')+'.min.css') }}"
type=
"text/css"
/>
{% else %}
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='css/logicodev.min.css') }}"
type=
"text/css"
/>
{% endif %}
{% if preferences.get_value('oscar-style') -%}
{{' '}}
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='css/'+preferences.get_value('oscar-style')+'.min.css') }}"
type=
"text/css"
/>
{%- else -%}
{{' '}}
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='css/logicodev.min.css') }}"
type=
"text/css"
/>
{%- endif %}
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='css/leaflet.min.css') }}"
type=
"text/css"
/>
{% for css in styles %}
{%
-
for css in styles %}
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename=css) }}"
type=
"text/css"
/>
{% endfor %}
...
...
@@ -48,6 +49,7 @@
</head>
<body>
{% include 'oscar/navbar.html' %}
<div
class=
"container"
>
{% if errors %}
<div
class=
"alert alert-danger fade in"
role=
"alert"
>
...
...
@@ -93,13 +95,14 @@
</div>
<script
src=
"{{ url_for('static', filename='js/jquery-1.11.1.min.js') }}"
></script>
<script
src=
"{{ url_for('static', filename='js/bootstrap.min.js') }}"
></script>
{% if autocomplete %}
<script
src=
"{{ url_for('static', filename='js/typeahead.bundle.min.js') }}"
></script>
{% endif %}
{% if autocomplete %}
<script
src=
"{{ url_for('static', filename='js/typeahead.bundle.min.js') }}"
></script>
{% endif %}
<script
src=
"{{ url_for('static', filename='js/require-2.1.15.min.js') }}"
></script>
<script
src=
"{{ url_for('static', filename='js/searx.min.js') }}"
data-method=
"{{ method or 'POST' }}"
data-autocompleter=
"{% if autocomplete %}true{% else %}false{% endif %}"
></script>
{% for script in scripts %}
<script
src=
"{{ url_for('static', filename=script) }}"
></script>
{{""}}
<script
src=
"{{ url_for('static', filename=script) }}"
></script>
{% endfor %}
<noscript>
<style>
...
...
searx/templates/oscar/categories.html
View file @
f34ac587
<div
id=
"categories"
>
{%
if rtl
%}
{% for category in categories | reverse %}
<input
class=
"hidden"
type=
"checkbox"
id=
"checkbox_{{ category|replace(' ', '_') }}"
name=
"category_{{ category }}"
{%
if
category
in
selected_categories
%}
checked=
"checked"
{%
endif
%}
/>
{%
- if rtl -
%}
{% for category in categories | reverse
-
%}
<input
class=
"hidden"
type=
"checkbox"
id=
"checkbox_{{ category|replace(' ', '_') }}"
name=
"category_{{ category }}"
{%
if
category
in
selected_categories
%}
checked=
"checked"
{%
endif
%}
/>
{{- '' -}}
<label
for=
"checkbox_{{ category|replace(' ', '_') }}"
>
{{ _(category) }}
</label>
{% endfor %}
{%
else
%}
{% for category in categories %}
<input
class=
"hidden"
type=
"checkbox"
id=
"checkbox_{{ category|replace(' ', '_') }}"
name=
"category_{{ category }}"
{%
if
category
in
selected_categories
%}
checked=
"checked"
{%
endif
%}
/>
{%
-
endfor %}
{%
- else -
%}
{% for category in categories
-
%}
<input
class=
"hidden"
type=
"checkbox"
id=
"checkbox_{{ category|replace(' ', '_') }}"
name=
"category_{{ category }}"
{%
if
category
in
selected_categories
%}
checked=
"checked"
{%
endif
%}
/>
{{- '' -}}
<label
for=
"checkbox_{{ category|replace(' ', '_') }}"
>
{{ _(category) }}
</label>
{% endfor %}
{%
endif
%}
{%
-
endfor %}
{%
- endif -
%}
</div>
searx/templates/oscar/infobox.html
View file @
f34ac587
{% from 'oscar/macros.html' import result_link with context %}
<div
class=
"panel panel-default infobox"
>
<div
class=
"panel-heading"
>
<h4
class=
"panel-title infobox_part"
><bdi>
{{ infobox.infobox }}
</bdi></h4>
<div
class=
"panel-heading"
>
{{- "" -}}
<h4
class=
"panel-title infobox_part"
><bdi>
{{ infobox.infobox }}
</bdi></h4>
{{- "" -}}
</div>
<div
class=
"panel-body"
>
{% if infobox.img_src %}
<img
class=
"img-responsive center-block infobox_part"
src=
"{{ image_proxify(infobox.img_src) }}"
alt=
"{{ infobox.infobox }}"
/>
{% endif %}
{% if infobox.content %}
<bdi><p
class=
"infobox_part"
>
{{ infobox.content }}
</bdi></p>
{% endif %}
{% if infobox.attributes %}
{% if infobox.content %}
<bdi><p
class=
"infobox_part"
>
{{ infobox.content }}
</p></bdi>
{% endif %}
{% if infobox.attributes -%}
<table
class=
"table table-striped infobox_part"
>
{% for attribute in infobox.attributes %}
<tr>
{% for attribute in infobox.attributes
-
%}
<tr>
{{- "" -}}
<td><bdi>
{{ attribute.label }}
</bdi></td>
{%
if attribute.image
%}
{%
- if attribute.image -
%}
<td><img
class=
"img-responsive"
src=
"{{ image_proxify(attribute.image.src) }}"
alt=
"{{ attribute.image.alt }}"
/></td>
{%
else
%}
{%
- else -
%}
<td><bdi>
{{ attribute.value }}
</bdi></td>
{%
endif
%}
{%
- endif -
%}
</tr>
{% endfor %}
{% endfor
-
%}
</table>
{% endif %}
{% if infobox.urls %}
<div
class=
"infobox_part"
>
{% if infobox.urls
-
%}
<div
class=
"infobox_part"
>
{{- "\n" -}}
<bdi>
{%
for url in infobox.urls
%}
<p
class=
"btn btn-default btn-xs"
>
{{ result_link(url.url, url.title) }}
</
a></
p>
{% endfor %}
</bdi>
{%
- for url in infobox.urls -
%}
<p
class=
"btn btn-default btn-xs"
>
{{ result_link(url.url, url.title) }}
</p>
{% endfor
-
%}
</bdi>
{{- "" -}}
</div>
{% endif %}
</div>
...
...
searx/templates/oscar/languages.html
View file @
f34ac587
{% if preferences %}
{% if preferences
-
%}
<select
class=
"custom-select form-control"
name=
'language'
>
{%
else
%}
{%
- else -
%}
<select
class=
"time_range custom-select form-control"
id=
'language'
name=
'language'
>
{%
endif
%}
{%
- endif -
%}
<option
value=
"all"
{%
if
current_language =
=
'
all
'
%}
selected=
"selected"
{%
endif
%}
>
{{ _('Default language') }}
</option>
{% for lang_id,lang_name,country_name,english_name in language_codes | sort(attribute=1)
%}
{%- for lang_id,lang_name,country_name,english_name in language_codes | sort(attribute=1) -
%}
<option
value=
"{{ lang_id }}"
{%
if
lang_id =
=
current_language
%}
selected=
"selected"
{%
endif
%}
>
{{
lang_name }} {% if country_name %}({{ country_name }}) {% endif %}- {{ lang_id
}}
{{
- lang_name }} {% if country_name %}({{ country_name }}) {% endif %}- {{ lang_id -
}}
</option>
{% endfor
%}
{%- endfor -
%}
</select>
\ No newline at end of file
searx/templates/oscar/macros.html
View file @
f34ac587
...
...
@@ -26,38 +26,38 @@
<!-- Draw result footer -->
{% macro result_footer(result) -%}
<div
class=
"clearfix"
></div>
<div
class=
"clearfix"
></div>
{{- "" -}}
<div
class=
"pull-right"
>
{% for engine in result.engines
%}
{%- for engine in result.engines -
%}
<span
class=
"label label-default"
>
{{ engine }}
</span>
{% endfor
%}
{% if result.url
%}
{%- endfor -
%}
{%- if result.url -
%}
<small>
{{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info") }}
</small>
{% endif
%}
{% if proxify
%}
{%- endif -
%}
{%- if proxify -
%}
<small>
{{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }}
</small>
{% endif
%}
</div>
{% if result.pretty_url
%}
<div
class=
"external-link"
>
{{ result.pretty_url }}
</div>
{% endif
%}
{%- endif -
%}
</div>
{%- if result.pretty_url -
%}
<div
class=
"external-link"
>
{{ result.pretty_url }}
</div>
{%- endif -
%}
{%- endmacro %}
<!-- Draw result footer -->
{% macro result_footer_rtl(result) -%}
<div
class=
"clearfix"
></div>
{% for engine in result.engines %}
<div
class=
"clearfix"
></div>
{{- "" -}}
{% for engine in result.engines
-
%}
<span
class=
"label label-default"
>
{{ engine }}
</span>
{% endfor %}
{%
if result.url
%}
{%
-
endfor %}
{%
- if result.url -
%}
<small>
{{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info") }}
</small>
{%
endif
%}
{% if proxify %}
{%
- endif -
%}
{% if proxify
-
%}
<small>
{{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }}
</small>
{% endif %}
{%
if result.pretty_url
%}
{%
-
endif %}
{%
- if result.pretty_url -
%}
<div
class=
"external-link"
>
{{ result.pretty_url }}
</div>
{% endif %}
{%
-
endif %}
{%- endmacro %}
{% macro preferences_item_header(info, label, rtl) -%}
...
...
searx/templates/oscar/navbar.html
View file @
f34ac587
<div
class=
"searx-navbar"
>
<span
class=
"instance {% if rtl %}pull-right{% else %}pull-left{% endif%}"
>
<a
href=
"{{ url_for('index') }}"
>
{{ instance_name }}
</a>
</span>
<span
class=
"{% if rtl %}pull-left{% else %}pull-right{% endif %}"
>
<a
href=
"{{ url_for('about') }}"
>
{{ _('about') }}
</a>
<a
href=
"{{ url_for('preferences') }}"
>
{{ _('preferences') }}
</a>
</span>
<div
class=
"searx-navbar"
>
{{- "" -}}
<span
class=
"instance {% if rtl %}pull-right{% else %}pull-left{% endif%}"
>
{{- "" -}}
<a
href=
"{{ url_for('index') }}"
>
{{ instance_name }}
</a>
{{- "" -}}
</span>
{{- "" -}}
<span
class=
"{% if rtl %}pull-left{% else %}pull-right{% endif %}"
>
{{- "" -}}
<a
href=
"{{ url_for('about') }}"
>
{{ _('about') }}
</a>
{{- "" -}}
<a
href=
"{{ url_for('preferences') }}"
>
{{ _('preferences') }}
</a>
{{- "" -}}
</span>
{{- "" -}}
</div>
searx/templates/oscar/result_templates/default.html
View file @
f34ac587
{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon with context %}
{{
result_header(result, favicons) }}
{{
result_sub_header(result) }}
{{
- result_header(result, favicons) -}}
{{
- result_sub_header(result) -}}
{%
if result.embedded %}
{%
- if result.embedded -%}
<small>
•
<a
class=
"text-info btn-collapse collapsed cursor-pointer media-loader disabled_if_nojs"
data-toggle=
"collapse"
data-target=
"#result-media-{{ index }}"
data-btn-text-collapsed=
"{{ _('show media') }}"
data-btn-text-not-collapsed=
"{{ _('hide media') }}"
>
{{ icon('music') }} {{ _('show media') }}
</a></small>
{%
endif %}
{%
- endif -%}
{%
if result.embedded %}
{%
- if result.embedded -%}
<div
id=
"result-media-{{ index }}"
class=
"collapse"
>
{{ result.embedded|safe }}
</div>
{%
endif %}
{%
- endif -%}
{%
if result.img_src %}
{%
- if result.img_src -%}
<div
class=
"container-fluid"
>
<div
class=
"row"
>
<img
src=
"{{ image_proxify(result.img_src) }}"
alt=
"{{ result.title|striptags }}"
title=
"{{ result.title|striptags }}"
style=
"width: auto; max-height: 60px; min-height: 60px;"
class=
"col-xs-2 col-sm-4 col-md-4 result-content"
>
{% if result.content %}
<p
class=
"result-content col-xs-8 col-sm-8 col-md-8"
>
{{ result.content|safe }}
</p>
{% endif
%}
{% if result.content %}
<p
class=
"result-content col-xs-8 col-sm-8 col-md-8"
>
{{ result.content|safe }}
</p>
{% endif
-%}
</div>
</div>
{%
else %}
{%
if result.content %}
<p
class=
"result-content"
>
{{ result.content|safe }}
</p>
{% endif %}
{%
endif %}
{%
- else -%}
{%
- if result.content %}
<p
class=
"result-content"
>
{{ result.content|safe }}
</p>
{% endif -%}
{%
- endif -%}
{%
if rtl %}
{%
- if rtl -%}
{{ result_footer_rtl(result) }}
{%
else %}
{%
- else -%}
{{ result_footer(result) }}
{%
endif %}
{%
- endif -%}
searx/templates/oscar/result_templates/images.html
View file @
f34ac587
{%
from 'oscar/macros.html' import draw_favicon %}
{%
- from 'oscar/macros.html' import draw_favicon -%}
<a
href=
"{{ result.img_src }}"
{%
if
results_on_new_tab
%}
target=
"_blank"
rel=
"noopener noreferrer"
{%
else
%}
rel=
"noreferrer"
{%
endif
%}
data-toggle=
"modal"
data-target=
"#modal-{{ index }}-{{pageno}}"
>
<img
src=
"{% if result.thumbnail_src %}{{ image_proxify(result.thumbnail_src) }}{% else %}{{ image_proxify(result.img_src) }}{% endif %}"
alt=
"{{ result.title|striptags }}"
title=
"{{ result.title|striptags }}"
class=
"img-thumbnail"
>
<a
href=
"{{ result.img_src }}"
{%
if
results_on_new_tab
%}
target=
"_blank"
rel=
"noopener noreferrer"
{%
else
%}
rel=
"noreferrer"
{%
endif
%}
data-toggle=
"modal"
data-target=
"#modal-{{ index }}-{{pageno}}"
>
{{- "" -}}
<img
src=
"{% if result.thumbnail_src %}{{ image_proxify(result.thumbnail_src) }}{% else %}{{ image_proxify(result.img_src) }}{% endif %}"
alt=
"{{ result.title|striptags }}"
title=
"{{ result.title|striptags }}"
class=
"img-thumbnail"
>
{{- "" -}}
</a>
<div
class=
"modal fade"
id=
"modal-{{ index }}-{{ pageno }}"
tabindex=
"-1"
role=
"dialog"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-wrapper"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
><span
aria-hidden=
"true"
>
×
</span><span
class=
"sr-only"
>
Close
</span></button>
<h4
class=
"modal-title"
>
{% if result.engine~".png" in favicons %}{{ draw_favicon(result.engine) }} {% endif %}{{ result.title|striptags }}
</h4>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal fade"
id=
"modal-{{ index }}-{{ pageno }}"
tabindex=
"-1"
role=
"dialog"
aria-hidden=
"true"
>
{{- "" -}}
<div
class=
"modal-dialog"
>
{{- "" -}}
<div
class=
"modal-wrapper"
>
{{- "" -}}
<div
class=
"modal-header"
>
{{- "" -}}
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
><span
aria-hidden=
"true"
>
×
</span><span
class=
"sr-only"
>
Close
</span></button>
{{- "" -}}
<h4
class=
"modal-title"
>
{% if result.engine~".png" in favicons %}{{ draw_favicon(result.engine) }} {% endif %}{{ result.title|striptags }}
</h4>
{{- "" -}}
</div>
{{- "" -}}
<div
class=
"modal-body"
>
{{- "" -}}
<img
class=
"img-responsive center-block"
src=
"{% if result.thumbnail_src %}{{ image_proxify(result.thumbnail_src) }}{% else %}{{ image_proxify(result.img_src) }}{% endif %}"
alt=
"{{ result.title|striptags }}"
>
{% if result.author %}
<span
class=
"photo-author"
>
{{ result.author }}
</span><br
/>
{% endif %}
{% if result.content %}
<p
class=
"result-content"
>
{{ result.content|striptags }}
</p>
{% endif %}
{% if result.img_format %}
<p
class=
"result-format"
>
{{ result.img_format }}
</p>
{% endif %}
{% if result.source %}
<p
class=
"result-source"
>
{{ result.source }}
</p>
{% endif %}
</div>
<div
class=
"modal-footer"
>
<div
class=
"clearfix"
></div>
<span
class=
"label label-default pull-right"
>
{{ result.engine }}
</span>
<p
class=
"text-muted pull-left"
>
{{ result.pretty_url }}
</p>
<div
class=
"clearfix"
></div>
<div
class=
"row"
>
<div
class=
"col-md-6"
>
<a
href=
"{{ result.img_src }}"
{%
if
results_on_new_tab
%}
target=
"_blank"
rel=
"noopener noreferrer"
{%
else
%}
rel=
"noreferrer"
{%
endif
%}
class=
"btn btn-default"
>
{{ _('Get image') }}
</a>
</div>
<div
class=
"col-md-6"
>
<a
href=
"{{ result.url }}"
{%
if
results_on_new_tab
%}
target=
"_blank"
rel=
"noopener noreferrer"
{%
else
%}
rel=
"noreferrer"
{%
endif
%}
class=
"btn btn-default"
>
{{ _('View source') }}
</a>
</div>
</div>
</div>
</div>
</div>
</div>
{%- if result.author %}
<span
class=
"photo-author"
>
{{ result.author }}
</span><br
/>
{% endif -%}
{%- if result.content %}
<p
class=
"result-content"
>
{{ result.content|striptags }}
</p>
{% endif -%}
{%- if result.img_format %}
<p
class=
"result-format"
>
{{ result.img_format }}
</p>
{% endif -%}
{%- if result.source %}
<p
class=
"result-source"
>
{{ result.source }}
</p>
{% endif -%}
</div>
{{- "" -}}
<div
class=
"modal-footer"
>
{{- "" -}}
<div
class=
"clearfix"
></div>
{{- "" -}}
<span
class=
"label label-default pull-right"
>
{{ result.engine }}
</span>
{{- "" -}}
<p
class=
"text-muted pull-left"
>
{{ result.pretty_url }}
</p>
{{- "" -}}
<div
class=
"clearfix"
></div>
{{- "" -}}
<div
class=
"row"
>
{{- "" -}}
<div
class=
"col-md-6"
>
{{- "" -}}
<a
href=
"{{ result.img_src }}"
{%
if
results_on_new_tab
%}
target=
"_blank"
rel=
"noopener noreferrer"
{%
else
%}
rel=
"noreferrer"
{%
endif
%}
class=
"btn btn-default"
>
{{ _('Get image') }}
</a>
{{- "" -}}
</div>
{{- "" -}}
<div
class=
"col-md-6"
>
{{- "" -}}
<a
href=
"{{ result.url }}"
{%
if
results_on_new_tab
%}
target=
"_blank"
rel=
"noopener noreferrer"
{%
else
%}
rel=
"noreferrer"
{%
endif
%}
class=
"btn btn-default"
>
{{ _('View source') }}
</a>
{{- "" -}}
</div>
{{- "" -}}
</div>
{{- "" -}}
</div>
{{- "" -}}
</div>
{{- "" -}}
</div>
{{- "" -}}
</div>
{{- "" -}}
searx/templates/oscar/results.html
View file @
f34ac587
This diff is collapsed.
Click to expand it.
searx/templates/oscar/search.html
View file @
f34ac587
...
...
@@ -10,15 +10,15 @@
</div>
</div>
<div
class=
"col-xs-6 col-md-2 search-margin"
>
{%
include 'oscar/time-range.html' %}
{%
- include 'oscar/time-range.html' -%}
</div>
<div
class=
"col-xs-6 col-md-2 search-margin"
>
{%
include 'oscar/languages.html' %}
{%
- include 'oscar/languages.html' -%}
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
{%
include 'oscar/categories.html' %}
{%
- include 'oscar/categories.html' -%}
</div>
</div>
</form>
<!-- / #search_form_full -->
searx/templates/oscar/time-range.html
View file @
f34ac587
<select
name=
"time_range"
id=
"time-range"
class=
"custom-select form-control"
>
<select
name=
"time_range"
id=
"time-range"
class=
"custom-select form-control"
>
{{- "" -}}
<option
id=
"time-range-anytime"
value=
""
{{
"
selected
"
if
time_range=
=""
or
not
time_range
else
""}}
>
{{
_('Anytime')
}}
</option>
{{
- _('Anytime') -
}}
</option>
{{- "" -}}
<option
id=
"time-range-day"
value=
"day"
{{
"
selected
"
if
time_range=
="day"
else
""}}
>
{{
_('Last day')
}}
</option>
{{
- _('Last day') -
}}
</option>
{{- "" -}}
<option
id=
"time-range-week"
value=
"week"
{{
"
selected
"
if
time_range=
="week"
else
""}}
>
{{
_('Last week')
}}
</option>
{{
- _('Last week') -
}}
</option>
{{- "" -}}
<option
id=
"time-range-month"
value=
"month"
{{
"
selected
"
if
time_range=
="month"
else
""}}
>
{{
_('Last month')
}}
</option>
{{
- _('Last month') -
}}
</option>
{{- "" -}}
<option
id=
"time-range-year"
value=
"year"
{{
"
selected
"
if
time_range=
="year"
else
""}}
>
{{
_('Last year')
}}
</option>
{{
- _('Last year') -
}}
</option>
{{- "" -}}
</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