diff options
author | MrPaulBlack <paul.accounts@protonmail.com> | 2021-10-07 23:48:52 +0200 |
---|---|---|
committer | MrPaulBlack <paul.accounts@protonmail.com> | 2021-10-09 16:00:56 +0200 |
commit | 09324f34925676a50fd6be6406e09b4805df4f04 (patch) | |
tree | 31e9df260aa8a8cfbf9f77c93684781a3190d3ef | |
parent | 740fca00ccabbbccd24e9fd6b17f5a56394cfca1 (diff) | |
download | searxng-09324f34925676a50fd6be6406e09b4805df4f04.tar.gz searxng-09324f34925676a50fd6be6406e09b4805df4f04.zip |
[template] move result url to top of article
-rw-r--r-- | searx/templates/simple/macros.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html index 4368ecb85..4fc4f0d00 100644 --- a/searx/templates/simple/macros.html +++ b/searx/templates/simple/macros.html @@ -27,6 +27,9 @@ <!-- Draw result header --> {% macro result_header(result, favicons, image_proxify) -%} <article class="result {% if result['template'] %}result-{{ result.template|replace('.html', '') }}{% else %}result-default{% endif %} {% if result['category'] %}category-{{ result['category'] }}{% endif %}{% for e in result.engines %} {{ e }}{% endfor %}"> + <p class="url"> + <span class="url">{{ result.pretty_url }}</span> + </p>{{- '' -}} {%- if result.img_src %}{{ result_open_link(result.url) }}<img class="image" src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" class="image" />{{ result_close_link() }}{% endif -%} {%- if result.thumbnail %}{{ result_open_link(result.url) }}<img class="thumbnail" src="{{ image_proxify(result.thumbnail) }}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}"/>{{ result_close_link() }}{% endif -%} <h3>{{ result_link(result.url, result.title|safe) }}</h3> @@ -40,8 +43,10 @@ <!-- Draw result sub footer --> {%- macro result_sub_footer(result, proxify) -%} -<div class="engines">{% for engine in result.engines %}<span>{{ engine }}</span>{% endfor %}</div>{{- '' -}} -<p class="url"><span class="url">{{ result.pretty_url }}</span>{{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "cache_link") }}‎ {% if proxify and proxify_results %} {{ result_link(proxify(result.url), icon('link') + _('proxied'), "proxyfied_link") }} {% endif %}</p>{{- '' -}} +<div class="engines"> + {% for engine in result.engines %}<span>{{ engine }}</span>{% endfor %} + {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "cache_link") }}‎ {% if proxify and proxify_results %} {{ result_link(proxify(result.url), icon('link') + _('proxied'), "proxyfied_link") }} {% endif %} +</div>{{- '' -}} <div class="break"></div>{{- '' -}} {%- endmacro -%} |