diff options
Diffstat (limited to 'templates/feedback/index.html')
-rw-r--r-- | templates/feedback/index.html | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/templates/feedback/index.html b/templates/feedback/index.html new file mode 100644 index 0000000..617c758 --- /dev/null +++ b/templates/feedback/index.html @@ -0,0 +1,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 %} |