Back to Searxng

Packages

searx/templates/simple/result_templates/packages.html

latest1.8 KB
Original Source

{%- from 'simple/macros.html' import result_header, result_sub_header, result_sub_footer, result_footer with context -%} {{ result_header(result, favicons, image_proxify) -}} {%- if result.content -%}

{{- result.content|safe -}}

{%- endif -%} {{- '' -}} {{- '' -}} {{ _('Name') }}:{{- '' -}} {{- result.package_name -}}{{- '' -}} {%- if result.version -%} {{- '' -}} {{- _('Version') }}:{{- '' -}} {{ result.version }} {{- '' -}} {%- endif -%} {%- if result.maintainer -%} {{- '' -}} {{ _('Maintainer') }}:{{- '' -}} {{ result.maintainer }}{{- '' -}} {%- endif -%} {%- if result.publishedDate -%} {{- '' -}} {{ _('Updated at') }}:{{- '' -}} {{ result.publishedDate }}{{- '' -}} {%- endif -%} {%- if result.tags -%} {{- '' -}} {{ _('Tags') }}:{{- '' -}} {{ result.tags|join(', ') }}{{- '' -}} {%- endif -%} {%- if result.popularity -%} {{- '' -}} {{ _('Popularity') }}:{{- '' -}} {{ result.popularity }}{{- '' -}} {%- endif -%} {%- if result.license_name -%} {{- '' -}} {{- _('License') -}}: {%- if result.license_url -%} {{ result.license_name }} {%- else -%} {{ result.license_name }} {%- endif -%} {%- endif -%} {%- if result.homepage or result.source_code_url or result.links -%} {{- '' -}} {{ _('Project') }}{{- '' -}} {%- if result.homepage -%} {{ _('Project homepage') }} {%- endif -%} {%- if result.homepage and result.source_code_url %} | {% endif -%} {%- if result.source_code_url -%} {{ _('Source code') }} {%- endif -%} {%- if result.links %} {%- for name, link in result.links.items() -%} {% if not loop.first or result.homepage or result.source_code_url %} | {% endif %} {{- _(name) -}} {%- endfor -%} {%- endif -%} {{- '' -}} {%- endif -%} {{- '' -}}

{{- result_footer(result) }}