index.html 1.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
{% extends "network/base.html" %}
{% load i18n %}
{% load l10n %}
{% load staticfiles %}

{% block content %}

<div class="page-header">
    <h1>{% trans "Dashboard" %}</h1>
</div>

{% include "network/dashboard.html" %}

<div class="page-header">
    <h1>{% trans "Latest modifications" %}</h1>
</div>

<table class="table table-striped table-bordered">
    <tr>
        <th>{% trans "Action" %}</th>
        <th>{% trans "Model" %}</th>
        <th>{% trans "Name" %}</th>
        <th>{% trans "Time elapsed" %}</th>
    </tr>
    {% for l in latest %}
    <tr>
        <td>{% if l.modified_at == l.created_at %}{% trans "created" %}{% else %}{% trans "modified" %}{% endif %}</td>
        <td>{{ l.class_name }}</td>
        <td><a href="{{ l.link }}">{{ l.name }}</a></td>
        <td>{{ l.modified_at|timesince }}</td>
    </tr>
    {% endfor %}
</table>


<div class="page-header">
    <h1>{% trans "Latest blacklists" %}</h1>
</div>

<table class="table table-striped table-bordered">
    <tr>
        <th>{% trans "IP" %}</th>
        <th>{% trans "Reason" %}</th>
        <th>{% trans "Type" %}</th>
        <th>{% trans "Time elapsed" %}</th>
    </tr>
    {% for b in latest_blacklists %}
    <tr>
        <td><a href="{{ b.get_absolute_url }}">{{ b.ipv4 }}</a></td>
        <td>{{ b.reason }}</td>
        <td>{{ b.type }}</td>
        <td>{{ b.modified_at|timesince }}</td>
    </tr>
    {% endfor %}
</table>
{% endblock %}