app-MAIL-temp/templates/dashboard/alias_log.html

169 lines
4.7 KiB
HTML
Raw Normal View History

2019-11-16 18:45:23 +01:00
{% extends 'default.html' %}
{% set active_page = "dashboard" %}
2020-01-05 22:49:48 +01:00
{% block head %}
<style>
2020-02-15 15:37:24 +01:00
{# https://bootsnipp.com/snippets/rljEW#}
.card-counter {
box-shadow: 2px 2px 10px #DADADA;
margin: 5px;
padding: 20px 10px;
background-color: #fff;
height: 100px;
border-radius: 5px;
transition: .3s linear all;
}
2019-11-16 18:45:23 +01:00
2020-02-15 15:37:24 +01:00
.card-counter:hover {
box-shadow: 4px 4px 20px #DADADA;
transition: .3s linear all;
}
2020-01-05 22:49:48 +01:00
2020-02-15 15:37:24 +01:00
.card-counter.primary {
background-color: #007bff;
color: #FFF;
}
2020-01-05 22:49:48 +01:00
2020-02-15 15:37:24 +01:00
.card-counter.danger {
background-color: #ef5350;
color: #FFF;
}
2020-01-05 22:49:48 +01:00
2020-02-15 15:37:24 +01:00
.card-counter.success {
background-color: #66bb6a;
color: #FFF;
}
2020-01-05 22:49:48 +01:00
2020-02-15 15:37:24 +01:00
.card-counter.info {
background-color: #26c6da;
color: #FFF;
}
2020-01-05 22:49:48 +01:00
2020-02-15 15:37:24 +01:00
.card-counter i {
2020-04-05 19:28:57 +02:00
font-size: 2em;
2020-02-15 15:37:24 +01:00
opacity: 0.2;
}
2020-01-05 22:49:48 +01:00
2020-02-15 15:37:24 +01:00
.card-counter .count-numbers {
position: absolute;
right: 35px;
top: 20px;
font-size: 32px;
display: block;
}
2020-01-05 22:49:48 +01:00
2020-02-15 15:37:24 +01:00
.card-counter .count-name {
position: absolute;
right: 35px;
top: 65px;
text-transform: capitalize;
opacity: 0.5;
display: block;
font-size: 18px;
}
2020-01-05 22:49:48 +01:00
</style>
{% endblock %}
2019-11-16 18:45:23 +01:00
{% block title %}
Alias Activity
{% endblock %}
{% block default_content %}
2020-03-22 23:30:55 +01:00
<h1 class="h3">
{{ alias.email }}
</h1>
2020-02-15 15:37:24 +01:00
<div class="row">
<div class="col-md-3 col-sm-6">
<div class="card-counter primary">
<i class="fa fa-at"></i>
<span class="count-numbers">{{ total }}</span>
<span class="count-name">Email Handled</span>
</div>
2020-01-05 22:49:48 +01:00
</div>
2020-02-15 15:37:24 +01:00
<div class="col-md-3 col-sm-6">
<div class="card-counter primary">
<i class="fa fa-paper-plane"></i>
<span class="count-numbers">{{ email_forwarded }}</span>
<span class="count-name">Email Forwarded</span>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="card-counter primary">
<i class="fa fa-reply"></i>
<span class="count-numbers">{{ email_replied }}</span>
<span class="count-name">Email Replied</span>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="card-counter danger">
<i class="fa fa-ban"></i>
<span class="count-numbers">{{ email_blocked }}</span>
<span class="count-name">Email Blocked</span>
</div>
</div>
</div>
2020-03-22 23:30:55 +01:00
<div class="row mt-4">
2019-12-06 10:19:19 +01:00
{% for log in logs %}
2020-04-05 19:28:57 +02:00
<div class="col-lg-6">
2019-12-31 11:11:06 +01:00
<div class="my-2 p-2 card border-light">
2020-04-05 19:28:57 +02:00
2020-02-22 15:09:07 +01:00
<div class="font-weight-bold">{{ log.when | dt }}
2020-04-05 19:28:57 +02:00
<div class="float-right pr-3">
{% if log.bounced %}
⚠️
{% else %}
{% if log.is_reply %}
<i class="fa fa-reply"></i>
{% elif log.blocked %}
2020-04-15 09:16:42 +02:00
<i class="fa fa-ban text-danger"></i>
2020-04-05 19:28:57 +02:00
{% else %}
<i class="fa fa-paper-plane"></i>
{% endif %}
{% endif %}
</div>
2020-02-22 15:09:07 +01:00
</div>
{% if log.bounced and not log.is_reply %}
2020-04-05 19:28:57 +02:00
<div>
<span class="mr-2">{{ log.website_email }}</span>
2020-02-22 15:09:07 +01:00
<img src="{{ url_for('static', filename='arrows/forward-arrow.svg') }}" class="arrow">
<span class="ml-2">{{ log.alias }}</span>
<img src="{{ url_for('static', filename='arrows/blocked-arrow.svg') }}" class="arrow">
2020-05-10 18:41:22 +02:00
<span class="ml-2">{{ log.email_log.bounced_mailbox() }}</span>
2020-04-05 19:28:57 +02:00
</div>
{% elif log.bounced and log.is_reply %}
<div>
<span class="ml-2">{{ log.email_log.bounced_mailbox() }}</span>
<img src="{{ url_for('static', filename='arrows/forward-arrow.svg') }}" class="arrow">
<span class="ml-2">{{ log.alias }}</span>
<img src="{{ url_for('static', filename='arrows/blocked-arrow.svg') }}" class="arrow">
<span class="mr-2">{{ log.website_email }}</span>
</div>
2020-04-05 19:28:57 +02:00
{% else %}
<div>
{{ log.website_email }}
</div>
{% endif %}
2019-12-06 10:19:19 +01:00
2019-11-16 18:45:23 +01:00
</div>
</div>
2019-12-06 10:19:19 +01:00
{% endfor %}
2019-11-16 18:45:23 +01:00
</div>
2019-12-06 10:28:00 +01:00
2019-12-31 11:11:06 +01:00
<nav aria-label="Alias log navigation">
<ul class="pagination">
<li class="page-item">
<a class="btn btn-outline-secondary {% if page_id == 0 %}disabled{% endif %}"
2020-02-15 15:37:24 +01:00
href="{{ url_for('dashboard.alias_log', alias_id=alias_id, page_id=page_id-1) }}">Previous</a>
</li>
<li class="page-item">
<a class="btn btn-outline-secondary {% if last_page %}disabled{% endif %}"
href="{{ url_for('dashboard.alias_log', alias_id=alias_id, page_id=page_id+1) }}">Next</a>
</li>
2019-12-31 11:11:06 +01:00
</ul>
</nav>
2019-11-16 18:45:23 +01:00
{% endblock %}
{% block script %}
{% endblock %}