@@ -19,9 +19,9 @@
1919
2020<!-- Draw result sub header -->
2121{% macro result_sub_header(result, id) -%}
22− {% if result.publishedDate %}<time class="text-muted" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif %}
23− {% if result.magnetlink %}<small> • {{ result_link(result.magnetlink, icon('magnet') + _('magnet link'), "magnetlink", id) }}</small>{% endif %}
24− {% if result.torrentfile %}<small> • {{ result_link(result.torrentfile, icon('download-alt') + _('torrent file'), "torrentfile", id) }}</small>{% endif %}
22+ {%- if result.publishedDate %}<time class="text-muted" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif -%}
23+ {%- if result.magnetlink %}<small> • {{ result_link(result.magnetlink, icon('magnet') + _('magnet link'), "magnetlink", id) }}</small>{% endif -%}
24+ {%- if result.torrentfile %}<small> • {{ result_link(result.torrentfile, icon('download-alt') + _('torrent file'), "torrentfile", id) }}</small>{% endif -%}
2525{%- endmacro %}
2626
2727<!-- Draw result footer -->
@@ -32,11 +32,11 @@
3232 <span class="label label-default">{{ engine }}</span>
3333 {%- endfor -%}
3434 {%- if result.url -%}
35− {% if result.cached_url %}
35+ {%- if result.cached_url -%}
3636 <small>{{ result_link(result.cached_url, icon('link') + _('cached'), "text-info", id) }}</small>
37− {% elif not result.is_onion %}
37+ {%- elif not result.is_onion -%}
3838 <small>{{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info", id) }}</small>
39− {% endif %}
39+ {%- endif -%}
4040 {%- endif -%}
4141 {%- if proxify -%}
4242 <small>{{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info", id) }}</small>
@@ -49,73 +49,73 @@
4949
5050<!-- Draw result footer without cache link -->
5151{% macro result_footer_nocache(result) -%}
52− <div class="clearfix"></div>
52+ <div class="clearfix"></div>{{- "" -}}
5353 <div class="pull-right">
54− {% for engine in result.engines %}
54+ {%- for engine in result.engines -%}
5555 <span class="label label-default">{{ engine }}</span>
56− {% endfor %}
57− {% if proxify %}
56+ {%- endfor -%}
57+ {%- if proxify -%}
5858 <small>{{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }}</small>
59− {% endif %}
60−</div>
59+ {%- endif -%}
60+</div>{{- "" -}}
6161<div class="external-link">{{ result.pretty_url }}</div>
6262{%- endmacro %}
6363
6464<!-- Draw result footer -->
6565{% macro result_footer_rtl(result, id) -%}
66− <div class="clearfix"></div>{{- "" -}}
67− {% for engine in result.engines -%}
66+ <div class="clearfix"></div>
67+ {%- for engine in result.engines -%}
6868 <span class="label label-default">{{ engine }}</span>
69− {%- endfor %}
69+ {%- endfor -%}
7070 {%- if result.url -%}
71− {% if result.cached_url %}
71+ {%- if result.cached_url -%}
7272 <small>{{ result_link(result.cached_url, icon('link') + _('cached'), "text-info", id) }}</small>
73− {% elif not result.is_onion %}
73+ {%- elif not result.is_onion -%}
7474 <small>{{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info", id) }}</small>
75− {% endif %}
75+ {%- endif -%}
7676 {%- endif -%}
77− {% if proxify -%}
77+ {%- if proxify -%}
7878 <small>{{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info", id) }}</small>
79− {%- endif %}
79+ {%- endif -%}
8080 {%- if result.pretty_url -%}
8181 <div class="external-link">{{ result.pretty_url }}</div>
82− {%- endif %}
82+ {%- endif -%}
8383{%- endmacro %}
8484
8585<!-- Draw result footer without cache link -->
8686{% macro result_footer_nocache_rtl(result) -%}
8787 <div class="clearfix"></div>
88− {% for engine in result.engines %}
88+ {%- for engine in result.engines -%}
8989 <span class="label label-default">{{ engine }}</span>
90− {% endfor %}
91− {% if proxify %}
90+ {%- endfor -%}
91+ {%- if proxify -%}
9292 <small>{{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }}</small>
93− {% endif %}
93+ {%- endif -%}
9494 <div class="external-link">{{ result.pretty_url }}</div>
9595{%- endmacro %}
9696
9797{% macro preferences_item_header(info, label, rtl, id) -%}
98− {% if rtl %}
99− <div class="row form-group">
100− <label class="col-sm-3 col-md-2 pull-right"{% if id %} for="{{id}}"{% endif %}>{{ label }}</label>
101− <span class="col-sm-5 col-md-6 help-block pull-left">{{ info }}</span>
98+ {%- if rtl -%}
99+ <div class="row form-group">{{- "" -}}
100+ <label class="col-sm-3 col-md-2 pull-right"{% if id %} for="{{id}}"{% endif %}>{{ label }}</label>{{- "" -}}
101+ <span class="col-sm-5 col-md-6 help-block pull-left">{{ info }}</span>{{- "" -}}
102102 <div class="col-sm-4 col-md-4">
103− {% else %}
104− <div class="row form-group">
105− <label class="col-sm-3 col-md-2"{% if id %} for="{{id}}"{% endif %}>{{ label }}</label>
103+ {%- else -%}
104+ <div class="row form-group">{{- "" -}}
105+ <label class="col-sm-3 col-md-2"{% if id %} for="{{id}}"{% endif %}>{{ label }}</label>{{- "" -}}
106106 <div class="col-sm-4 col-md-4">
107− {% endif %}
107+ {%- endif -%}
108108{%- endmacro %}
109109
110110{% macro preferences_item_footer(info, label, rtl) -%}
111− {% if rtl %}
112− </div>
111+ {%- if rtl -%}
112+ </div>{{- "" -}}
113113 </div>
114− {% else %}
114+ {%- else -%}
115115 </div>
116− <span class="col-sm-5 col-md-6 help-block">{{ info }}</span>
116+ <span class="col-sm-5 col-md-6 help-block">{{ info }}</span>{{- "" -}}
117117 </div>
118− {% endif %}
118+ {%- endif -%}
119119{%- endmacro %}
120120
121121{% macro custom_select_class(rtl) -%}
@@ -123,24 +123,24 @@ custom-select{% if rtl %}-rtl{% endif %}
123123{%- endmacro %}
124124
125125{% macro checkbox_toggle(id, blocked) -%}
126− <div class="onoffswitch">
127− <input type="checkbox" id="{{ id }}" name="{{ id }}"{% if blocked %} checked="checked"{% endif %} class="onoffswitch-checkbox">
128− <label class="onoffswitch-label" for="{{ id }}">
129− <span class="onoffswitch-inner"></span>
130− <span class="onoffswitch-switch"></span>
131− </label>
132− <label class="visually-hidden" for="{{ id }}">{{ _('Allow') }}</label>
133− </div>
126+ <div class="onoffswitch">{{- "" -}}
127+ <input type="checkbox" id="{{ id }}" name="{{ id }}"{% if blocked %} checked="checked"{% endif %} class="onoffswitch-checkbox">{{- "" -}}
128+ <label class="onoffswitch-label" for="{{ id }}">{{- "" -}}
129+ <span class="onoffswitch-inner"></span>{{- "" -}}
130+ <span class="onoffswitch-switch"></span>{{- "" -}}
131+ </label>{{- "" -}}
132+ <label class="visually-hidden" for="{{ id }}">{{ _('Allow') }}</label>{{- "" -}}
133+ </div>{{- "" -}}
134134{%- endmacro %}
135135
136136{% macro support_toggle(supports) -%}
137− {% if supports %}
137+ {%- if supports -%}
138138 <span class="label label-success">
139− {{ _("supported") }}
139+ {{- _("supported") -}}
140140 </span>
141− {% else %}
141+ {%- else -%}
142142 <span class="label label-danger">
143− {{ _("not supported") }}
143+ {{- _("not supported") -}}
144144 </span>
145− {% endif %}
145+ {%- endif -%}
146146{%- endmacro %}