diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2020-10-26 14:20:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-26 14:20:58 +0100 |
| commit | db703a0283ee169381aeea97c678e666ae508348 (patch) | |
| tree | 6b992653be4ab7905f2b7bf27d98d64cb15570fe /searx/templates/legacy | |
| parent | 2aef38c3b9d1fe93e9d665a49b10151d63d92392 (diff) | |
| parent | 32957cdf49c306a5f50ca78bb50c0978ffe5c072 (diff) | |
Merge pull request #565 from MarcAbonce/onions
New category: Onions
Diffstat (limited to 'searx/templates/legacy')
| -rw-r--r-- | searx/templates/legacy/result_templates/default.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/searx/templates/legacy/result_templates/default.html b/searx/templates/legacy/result_templates/default.html index 13e2d2913..78bf031df 100644 --- a/searx/templates/legacy/result_templates/default.html +++ b/searx/templates/legacy/result_templates/default.html @@ -1,6 +1,11 @@ <div class="result {{ result.class }}{% for e in result.engines %} {{ e }}{% endfor %}"> <h3 class="result_title">{% if "icon_"~result.engine~".ico" in favicons %}<img width="14" height="14" class="favicon" src="{{ url_for('static', filename='img/icons/icon_'+result.engine+'.ico') }}" alt="{{result.engine}}" />{% endif %}<a href="{{ result.url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>{{ result.title|safe }}</a></h3> - <p class="url">{{ result.pretty_url }}‎ <a class="cache_link" href="https://web.archive.org/web/{{ result.url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>{{ _('cached') }}</a> + <p class="url">{{ result.pretty_url }}‎ + {% if result.cached_url %} + <a class="cache_link" href="{{ result.cached_url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>{{ _('cached') }}</a> + {% elif not result.is_onion %} + <a class="cache_link" href="https://web.archive.org/web/{{ result.url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>{{ _('cached') }}</a> + {% endif %} {% if result.publishedDate %}<span class="published_date">{{ result.publishedDate }}</span>{% endif %}</p> <p class="content">{% if result.img_src %}<img src="{{ image_proxify(result.img_src) }}" class="image" />{% endif %}{% if result.content %}{{ result.content|safe }}<br class="last"/>{% endif %}</p> </div> |