diff options
Diffstat (limited to 'searx/templates')
| -rw-r--r-- | searx/templates/simple/result_templates/packages.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/searx/templates/simple/result_templates/packages.html b/searx/templates/simple/result_templates/packages.html index da7644a29..8608621ba 100644 --- a/searx/templates/simple/result_templates/packages.html +++ b/searx/templates/simple/result_templates/packages.html @@ -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 -%} |