summaryrefslogtreecommitdiffstats
path: root/templates/record/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/record/index.html')
-rw-r--r--templates/record/index.html96
1 files changed, 96 insertions, 0 deletions
diff --git a/templates/record/index.html b/templates/record/index.html
new file mode 100644
index 0000000..ace1995
--- /dev/null
+++ b/templates/record/index.html
@@ -0,0 +1,96 @@
+{% extends "layout.html" %}
+{% block title %}Record{% endblock %}
+{% block content %}
+<ol class="breadcrumb">
+ <li><a href="{{ url_for('index') }}">Index</a></li>
+ <li><a href="{{ url_for('feedback') }}">Feedback</a></li>
+ <li><a href="{{ url_for('report', feedbackid=record.feedbackid) }}">Report</a></li>
+ <li class="active">Record</li>
+</ol>
+<h1>Record</h2>
+<div class="row">
+ <div class="col-md-6">
+ <h2>Record Details</h2>
+ <dl class="dl-horizontal">
+ <dt>Source IP</dt><dd>{{ record.row_source_ip|fqdn }}</dd>
+ <dt>Count</dt><dd>{{ record.row_count }}</dd>
+ </dl>
+ <h3>Policy Evaluated</h3>
+ <dl class="dl-horizontal">
+ <dt>Disposition</dt><dd>{{ record.row_pol_disposition }}</dd>
+ <dt>DKIM</dt><dd>
+ <span class="label label-{{ record.row_pol_dkim|tblclass }}">
+ {{ record.row_pol_dkim }}
+ </span>
+ </dd>
+ <dt>SPF</dt><dd>
+ <span class="label label-{{ record.row_pol_spf|tblclass }}">
+ {{ record.row_pol_spf }}
+ </span>
+ </dd>
+ </dl>
+ {% if reasons %}
+ <h4>Reasons</h4>
+ <table class="table">
+ <tr>
+ <th>Type</th>
+ <th>Comment</th>
+ </tr>
+ {% for item in reasons %}
+ <tr>
+ <td>{{ item['type'] }}</td>
+ <td>{{ item['comment'] }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endif %}
+ </div>
+ <div class="col-md-4">
+ <h2>Identifiers</h2>
+ <dl class="dl-horizontal">
+ <dt>Envelope To</dt><dd>{{ record.ids_envelope_to }}</dd>
+ <dt>Header From</dt><dd>{{ record.ids_header_from }}</dd>
+ </dl>
+ </div>
+</div>
+
+<div class="row">
+ {% if resdkim %}
+ <div class="col-md-8">
+ <h2>DKIM Results</h2>
+ <table class="table">
+ <tr>
+ <th>Domain</th>
+ <th>Selector</th>
+ <th>Result</th>
+ <th>Human Result</th>
+ </tr>
+ {% for item in resdkim %}
+ <tr>
+ <td>{{ item['domain'] }}</td>
+ <td>{{ item['selector'] }}</td>
+ <td class="{{ item['result']|tblclass }}">{{ item['result'] }}</td>
+ <td>{{ item['human_result'] }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ </div>
+ {% endif %}
+
+ <div class="col-md-4">
+ <h2>SPF Results</h2>
+ <table class="table">
+ <tr>
+ <th>Domain</th>
+ <th>Result</th>
+ </tr>
+ {% for item in resspf %}
+ <tr>
+ <td>{{ item['domain'] }}</td>
+ <td class="{{ item['result']|tblclass }}">{{ item['result'] }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endblock %}
+ </div>
+</div>