2025-03-12 12:32:15 -07:00
{% extends "shell.html" %}
{% block title %}{{ search_query }}{% endblock %}
{% block head %}
2025-03-24 14:18:01 -07:00
< link rel = "stylesheet" href = "/static/themes/default/search.css?git={{ git_commit }}" / >
< link rel = "stylesheet" href = "/static/themes/{{theme.internal_name()}}/search.css?git={{ git_commit }}" / >
{% if search_query == "notnite" %}< link rel = "stylesheet" href = "/static/creature.css?git={{ git_commit }}" / > {% endif %}
2025-03-12 12:32:15 -07:00
{% endblock %}
{% block page %}
< div class = "main" >
{% include "ui/userbar.html" %}
{% if alpha %}< span id = "alpha-warning" > WARNING! askLyphe is in alpha! user experience is in no way representative of the final product!< / span > {% endif %}
{% include "ui/navbar.html" %}
< div class = "index-bar" >
< a href = "{{ websearch_url }}" >
2025-03-24 14:18:01 -07:00
< img id = "websearch-img-selected" src = "/static/img/websearch_selected.png?git={{ git_commit }}" alt = "search the web" / >
2025-03-12 12:32:15 -07:00
< / a >
< a href = "{{ imagesearch_url }}" >
2025-03-24 14:18:01 -07:00
< img id = "imagesearch-img" src = "/static/img/imagesearch.png?git={{ git_commit }}" alt = "search for images" / >
2025-03-12 12:32:15 -07:00
< / a >
< / div >
< div class = "pagecontent" >
< div class = "pagegradient" >
< div class = "response" >
{% match error %}
{% when Some with (val) %}
< div class = "error" > {{ val }}< / div >
{% when None %}
{% match note %}
{% when Some with (val) %}
< div class = "note" > {{ val }}< / div >
{% when None %}
{% endmatch %}
< div class = "stats" > found {{ search_results.len() }} results in {{ query_time }} seconds ({{
page_rank_time
}} was pageranking)
< / div >
< div class = "results-area" >
< div class = "complications" >
{% if complications.disabled %}
< div class = "complications-note" >
< span > complications disabled for this query< / span >
< / div >
{% endif %}
{% match complications.unit_converter %}
{% when Some with (conversion) %}
< div class = "unit_converter-complication" >
< span class = "unit_converter-title" > lyphe unit converter< / span >
< span class = "unit_converter-result" > {{ conversion.value }} {{ conversion.unit_a }} = {{ conversion.equals }} {{ conversion.unit_b }}< / span >
< / div >
{% when None %}
{% endmatch %}
{% match complications.wikipedia %}
{% when Some with (wikipedia) %}
< div class = "wikipedia-complication" >
< a href = "{{ wikipedia.url }}" >
< div class = "wikipedia-header" >
< span class = "wikipedia-title" > {{ wikipedia.title }}< / span >
< span class = "wikipedia-fromwikipedia" > from wikipedia, the free encyclopedia that anyone can edit< / span >
< / div >
{% match wikipedia.image %}
{% when Some with (image) %}
< div class = "wikipedia-image" >
< img src = "{{ image }}" alt = "wikipedia thumbnail image for {{ wikipedia.title }}" / >
< / div >
{% when None %}
{% endmatch %}
< / a >
< span class = "wikipedia-class" > {{ wikipedia.description }}< / span >
< span class = "wikipedia-description" > {{ wikipedia.extract }}< / span >
< / div >
{% when None %}
{% endmatch %}
< / div >
< ol class = "search-result-list" >
{% for result in search_results %}
{% include "ui/search_result.html" %}
{% endfor %}
< / ol >
{% if blocked.len() > 0 %}
< span class = "blocked-header" > {{ blocked.len() }} results were pruned from search results for the following reasons:< / span >
< ol class = "blocked-results" >
{% for (url, reason) in blocked %}
< li > "{{ url }}" because "{{ reason }}"< / li >
{% endfor %}
< / ol >
{% endif %}
< / div >
{% endmatch %}
< / div >
< / div >
< / div >
{% include "ui/footer.html" %}
< / div >
2025-03-19 20:58:23 -07:00
{% endblock %}