{% extends "base.html" %}
{% load i18n %}
{% block headers %}
{% endblock headers %}
{% block submenu %}
{% if user.is_superuser %}
<ul>
    <li>{% trans "Bayes information" %}</li>
    <li><a href="{% url sa-lint %}">{% trans "Spamassassin lint" %}</a></li>
</ul>
{% endif %}
{% endblock submenu %}
{% block title %}
{% trans "Bayes information" %}
{% endblock title %}
{% block heading %}
{% trans "Bayes information" %}
{% endblock heading %}
{% block content %}
<div class="Grid_heading">
    <div class="Bayes_heading">{% trans "Bayes Database Information" %}</div>
</div>
{% if data %}
<div class="LightBlue_div">
    <div class="Bayes_title">{% trans "Bayes Version" %}</div>
    <div class="Bayes_value">{{ data.version }}</div>
</div>
<div class="LightGray_div">
    <div class="Bayes_title">{% trans "Number of Spam messages" %}</div>
    <div class="Bayes_value">{{ data.spam }}</div>
</div>
<div class="LightBlue_div">
    <div class="Bayes_title">{% trans "Number of Ham messages" %}</div>
    <div class="Bayes_value">{{ data.ham }}</div>
</div>
<div class="LightGray_div">
    <div class="Bayes_title">{% trans "Number of Tokens" %}</div>
    <div class="Bayes_value">{{ data.tokens }}</div>
</div>
<div class="LightBlue_div">
    <div class="Bayes_title">{% trans "Newest Token" %}</div>
    <div class="Bayes_value">{{ data.ntoken }}</div>
</div>
<div class="LightGray_div">
    <div class="Bayes_title">{% trans "Oldest Token" %}</div>
    <div class="Bayes_value">{{ data.otoken }}</div>
</div>
<div class="LightBlue_div">
    <div class="Bayes_title">{% trans "Last Journal Sync" %}</div>
    <div class="Bayes_value">{{ data.ljournal }}</div>
</div>
<div class="LightGray_div">
    <div class="Bayes_title">{% trans "Last Expiry" %}</div>
    <div class="Bayes_value">{{ data.expiry }}</div>
</div>
<div class="LightBlue_div">
    <div class="Bayes_title">{% trans "Last Expiry Reduction Count" %}</div>
    <div class="Bayes_value">{{ data.rcount }}</div>
</div>
{% else %}
<div class="spanrow">
{% trans "Bayes information could not be collected." %}
</div>
{% endif %}
{% endblock content %}
