opencompletion.com/templates/search.html
Russell Ballestrini 77c2ef1d83 messing around with keyword search working but ugly!
modified:   app.py
	new file:   templates/base.html
	modified:   templates/chat.html
	new file:   templates/search.html
2024-07-04 10:21:37 -04:00

24 lines
788 B
HTML

{% extends "base.html" %}
{% block title %}Search Results{% endblock %}
{% block content %}
<div id="search-results">
{% if error %}
<div class="search-result">{{ error }}</div>
{% elif results %}
{% for result in results %}
<div class="search-result">
<a href="/chat/{{ result.room_name }}?username={{ username }}">
<b>{{ result.room_name }}</b> ({{ result.room_title or "No title" }})<br>
<b>Snippets:</b> {{ result.snippets | join(' ... ') }}<br>
<b>Score:</b> {{ result.score }}
</a>
</div>
<br/>
{% endfor %}
{% else %}
<div class="search-result">No results found.</div>
{% endif %}
</div>
{% endblock %}