{% extends "base.html" %} {% block title %}History - Fake News Detector{% endblock %} {% block content %}

Analysis History

{% if user.role == 'admin' %} System-wide analysis history {% elif user.role == 'analyst' %} All user analysis history {% else %} Your personal analysis history {% endif %}

Prediction History
{% if predictions.items %} Showing {{ predictions.per_page * (predictions.page - 1) + 1 }} - {{ predictions.per_page * (predictions.page - 1) + predictions.items|length }} of {{ predictions.total }} results {% endif %}
{% if predictions.items %}
{% if user.role in ['admin', 'analyst'] %} {% endif %} {% for prediction in predictions.items %} {% if user.role in ['admin', 'analyst'] %} {% endif %} {% endfor %}
IDUserArticle Preview Result Confidence Date Actions
#{{ prediction.id }}
{{ prediction.article_text[:150] }} {% if prediction.article_text|length > 150 %}...{% endif %}
{{ prediction.article_text|length }} characters
{{ prediction.prediction.title() }}
{{ (prediction.confidence * 100)|round }}%
{{ prediction.created_at.strftime('%m/%d/%Y') }}
{{ prediction.created_at.strftime('%H:%M:%S') }}
{% if user.role == 'admin' %} {% endif %}
{% if predictions.pages > 1 %} {% endif %} {% else %}

No Analysis History

{% if user.role in ['admin', 'analyst'] %} No analyses have been performed by any user yet. {% else %} You haven't analyzed any articles yet. {% endif %}

Start Analyzing
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}