mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-09 14:09:07 -06:00
45 lines
2.0 KiB
HTML
45 lines
2.0 KiB
HTML
{% extends 'base.html' %}
|
|
{% block body %}
|
|
<!-- Search History Section -->
|
|
<section class="section section-padding">
|
|
<div class="container">
|
|
<div class="columns is-mobile is-multiline is-centered">
|
|
<div class="column">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
{% set result_count = current_user.search_history.all() | length %}
|
|
<div class="card-header-title">
|
|
<div>Search History</div>
|
|
<div style="padding: 0.3rem; font-weight: 100; font-size: 80%">{{ result_count }} result{% if result_count > 1 %}s{% endif %} found</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-content">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th><abbr title="Search ID">ID</abbr></th>
|
|
<th>Exact URL</th>
|
|
<th>Query Arguments</th>
|
|
<th>Timestamp</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for post in current_user.search_history | reverse %}
|
|
<tr>
|
|
<td>{{ post.id }}</td>
|
|
<td>{{ post.exact_url }}</td>
|
|
<td>{{ post.query_args }}</td>
|
|
<td>{{ post.timestamp }} UTC</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!-- End Search History Section -->
|
|
{% endblock body %} |