mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 18:42:33 +02:00
[mod] package.html template: additional links (a python dict)
- Closes: https://github.com/searxng/searxng/issues/3456
This commit is contained in:
parent
645a840d82
commit
cc8b537e34
3 changed files with 21 additions and 10 deletions
|
@ -47,7 +47,7 @@
|
|||
{%- endif -%}
|
||||
</div>
|
||||
{%- endif -%}
|
||||
{%- if result.homepage or result.source_code_url -%}
|
||||
{%- if result.homepage or result.source_code_url or result.links -%}
|
||||
<div class="result_project">{{- '' -}}
|
||||
<span>{{ _('Project') }}</span>
|
||||
<span>{{- '' -}}
|
||||
|
@ -58,6 +58,14 @@
|
|||
{%- if result.source_code_url -%}
|
||||
<a href="{{ result.source_code_url }}" target="_blank">{{ _('Source code') }}</a>
|
||||
{%- endif -%}
|
||||
{%- if result.links %}
|
||||
{%- for name, link in result.links.items() -%}
|
||||
{% if not loop.first or result.homepage or result.source_code_url %} | {% endif %}
|
||||
<a href="{{ link }}" target="_blank">
|
||||
{{- _(name) -}}
|
||||
</a>
|
||||
{%- endfor -%}
|
||||
{%- endif -%}
|
||||
</span>{{- '' -}}
|
||||
</div>
|
||||
{%- endif -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue