{% extends "base.html" %} {% block title %}History - Fake News Detector{% endblock %} {% block content %}
{% if user.role == 'admin' %} System-wide analysis history {% elif user.role == 'analyst' %} All user analysis history {% else %} Your personal analysis history {% endif %}
| ID | {% if user.role in ['admin', 'analyst'] %}User | {% endif %}Article Preview | Result | Confidence | Date | Actions |
|---|---|---|---|---|---|---|
#{{ prediction.id }}
|
{% if user.role in ['admin', 'analyst'] %}
{% endif %} |
{{ prediction.article_text[:150] }}
{% if prediction.article_text|length > 150 %}...{% endif %}
{{ prediction.article_text|length }} characters
|
{{ prediction.prediction.title() }} |
|
{{ prediction.created_at.strftime('%m/%d/%Y') }}
{{ prediction.created_at.strftime('%H:%M:%S') }}
|
{% if user.role == 'admin' %}
{% endif %}
|
{% 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