summaryrefslogtreecommitdiff
path: root/searx/templates/simple/elements/search_url.html
blob: 77c956dac157a6dc1ec50b17c9732cda70129ae7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<div id="search_url" role="complementary" aria-labelledby="search_url-title">
  <details class="sidebar-collapsable">
    <summary class="title" id="search_url-title">{{ _('Search URL') }}</summary>
    <button id="copy_url" type="submit" data-copied-text="{{ _('Copied') }}">{{ _('Copy') }}</button>
    <div class="selectable_url">
      <pre>{{ url_for('search', _external=True) }}?q={{ q|urlencode }}&amp;language={{ current_language }}&amp;time_range={{ time_range }}&amp;safesearch={{ safesearch }}
        {%- if pageno > 1 -%}
          &amp;pageno={{ pageno }}
        {%- endif -%}
        {%- if selected_categories -%}
          &amp;categories={{ selected_categories|join(",") | replace(' ','+') }}
        {%- endif -%}
        {%- if timeout_limit -%}
          &amp;timeout_limit={{ timeout_limit|urlencode }}
        {%- endif -%}
      </pre>
    </div>
  </details>
</div>