35 lines
1.1 KiB
HTML
35 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<div class="container mt-4">
|
|
<h1>Search Results</h1>
|
|
<p>Results for: <strong>{{ query }}</strong></p>
|
|
{% if pastes %}
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Content Type</th>
|
|
<th>Language</th>
|
|
<th>URL</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for paste in pastes %}
|
|
<tr>
|
|
<td>{{ paste.id }}</td>
|
|
<td>{{ paste.content_type or "N/A" }}</td>
|
|
<td>{{ paste.language or "N/A" }}</td>
|
|
<td><a href="{{ paste.url }}" target="_blank">{{ paste.url }}</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>No results found for your query.</p>
|
|
{% endif %}
|
|
<a href="{{ url_for('user_dashboard') }}" class="btn btn-secondary">Back to Dashboard</a>
|
|
</div>
|
|
{% endblock %}
|
|
|