{% extends 'base.html' %} {% block body %}
{% set result_count = current_user.search_history.all() | length %}
Search History
{{ result_count }} result{% if result_count > 1 %}s{% endif %} found
{% for post in current_user.search_history | reverse %} {% endfor %}
ID Exact URL Query Arguments Timestamp
{{ post.id }} {{ post.exact_url }} {{ post.query_args }} {{ post.timestamp }}
{% endblock body %}