summaryrefslogtreecommitdiffstats
path: root/templates/feedback/index.html
blob: 617c7587c13b1d2362599a3050de8917d51fbf6b (plain)
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
{% extends "layout.html" %}
{% block title %}Feedback{% endblock %}
{% block content %}
<ol class="breadcrumb">
  <li><a href="{{ url_for('index') }}">Index</a></li>
  <li class="active">Feedback</li>
</ol>
<h1>Feedback</h1>
<table class="table table-condensed">
  <tr>
    <th>{{ orderhdr('Organisation Name', 'feedback', 'rm_org_name', order)|safe }}</th>
    <th>{{ orderhdr('Date Begin', 'feedback', 'rm_date_begin', order)|safe }}</th>
    <th>{{ orderhdr('Date End', 'feedback', 'rm_date_end', order)|safe }}</th>
    <th>{{ orderhdr('Messages', 'feedback', 'nemails', order)|safe }}</th>
    <th>None</th>
    <th>Pass</th>
    <th>DKIM</th>
    <th>SPF</th>
    <th></th>
  </tr>
  {% for item in feedback %}
  <a href="{{ url_for('report', feedbackid=item.feedbackid) }}">
  <tr>
    <td>{{ item.rm_org_name }}</td>
    <td><time>{{ item.rm_date_begin|isotime }}</time></td>
    <td><time>{{ item.rm_date_end|isotime }}</time></td>
    <td>{{ item.nemails }}</td>
    <td class="{{ item.pass_none|pctclass(item.nemails) }}">
      {{ (item.pass_none / item.nemails * 100)|round|int }}%
    </td>
    <td class="{{ item.pass_dmarc|pctclass(item.nemails) }}">
      {{ (item.pass_dmarc / item.nemails * 100)|round|int }}%
    </td>
    <td class="{{ item.pass_dkim|pctclass(item.nemails) }}">
      {{ (item.pass_dkim / item.nemails * 100)|round|int }}%
    </td>
    <td class="{{ item.pass_spf|pctclass(item.nemails) }}">
      {{ (item.pass_spf / item.nemails * 100)|round|int }}%
    </td>
    <td>
      <a class="btn btn-xs" href="{{ url_for('report', feedbackid=item.feedbackid) }}">
        Report
      </a>
    </td>
  </tr>
  </a>
  {% endfor %}
</table>
{% endblock %}