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