niku-client/app/templates/search_history.html

30 lines
727 B
HTML
Raw Normal View History

2023-08-01 20:44:17 +00:00
{% extends 'master.html' %}
{% block body %}
<table align="center" width="80%" border="1px">
<tr style="background-color: #f2f2f2"><td colspan="2" align="center"><h1>Welcome to niku!</h1></td></tr>
</table>
<br></br>
<table width="80%" align="center">
<tr>
<th colspan="2">Search History</th>
<th><a href="/search">+ New Search</a></td>
</tr>
<tr>
<th>ID</th>
<th># matches</th>
<th>Parameters</th>
</tr>
{% for search in searches %}
<tr class="search_row" data-id="{{ search.num }}">
<td>{{ search.num }}</td>
<td>{{ search.num_results }}</td>
<td width="80%">{{ cutoff(json.dumps(search.params).strip('{}'), 80) }}</td>
</tr>
{% endfor %}
</table>
<br><br>
{% endblock %}