This repository has been archived on 2025-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
asklyphe-frontend/templates/ui/search_result.html

25 lines
1.2 KiB
HTML
Raw Normal View History

2025-03-07 17:13:57 -08:00
<li>
<a class="search-result" href="{{ result.url }}">
<h2 class="search-title">{% match result.title %}{% when Some with (title) %}{{ title }}{% when None %}{{ result.url }}{% endmatch %}</h2>
<span class="resultstat">
{% match result.title %}
{% when Some with (_) %}<span class="search-url">{{ result.url }}</span>{% when None %}
{% endmatch %}
<span class="search-relevance">({{ result.percentage }}%, {{ result.value }} / {{ max_relevance }})</span>
<span class="enginelist">
{% if result.asklyphe %}
<img src="/static/img/tinylyphe.png" title="from askLyphe database"/>
{% endif %}
{% if result.bing %}
<img src="/static/img/tinybutterfly.png" title="from external search engine"/>
{% endif %}
{% if result.google %}
<img src="/static/img/tinyletter.png" title="from external search engine"/>
{% endif %}
</span>
</span>
{% match result.description %}{% when Some with (description) %}
<span class="search-description">{{ description }}</span>
{% when None %}{% endmatch %}
</a>
</li>