2019-11-16 17:45:23 +00:00
|
|
|
{% extends 'default.html' %}
|
|
|
|
|
|
|
|
{% set active_page = "dashboard" %}
|
2020-01-05 21:49:48 +00:00
|
|
|
{% block head %}
|
|
|
|
<style>
|
|
|
|
{# 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 17:45:23 +00:00
|
|
|
|
2020-01-05 21:49:48 +00:00
|
|
|
.card-counter:hover{
|
|
|
|
box-shadow: 4px 4px 20px #DADADA;
|
|
|
|
transition: .3s linear all;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-counter.primary{
|
|
|
|
background-color: #007bff;
|
|
|
|
color: #FFF;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-counter.danger{
|
|
|
|
background-color: #ef5350;
|
|
|
|
color: #FFF;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-counter.success{
|
|
|
|
background-color: #66bb6a;
|
|
|
|
color: #FFF;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-counter.info{
|
|
|
|
background-color: #26c6da;
|
|
|
|
color: #FFF;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-counter i{
|
|
|
|
font-size: 5em;
|
|
|
|
opacity: 0.2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-counter .count-numbers{
|
|
|
|
position: absolute;
|
|
|
|
right: 35px;
|
|
|
|
top: 20px;
|
|
|
|
font-size: 32px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-counter .count-name{
|
|
|
|
position: absolute;
|
|
|
|
right: 35px;
|
|
|
|
top: 65px;
|
|
|
|
text-transform: capitalize;
|
|
|
|
opacity: 0.5;
|
|
|
|
display: block;
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{% endblock %}
|
2019-11-16 17:45:23 +00:00
|
|
|
{% block title %}
|
|
|
|
Alias Activity
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block default_content %}
|
2019-12-31 10:11:06 +00:00
|
|
|
<div class="page-header row ml-0">
|
2019-11-16 17:45:23 +00:00
|
|
|
<h3 class="page-title col">
|
2019-11-16 17:54:55 +00:00
|
|
|
{{ alias }}
|
2019-11-16 17:45:23 +00:00
|
|
|
</h3>
|
|
|
|
</div>
|
2020-01-05 21:49:48 +00:00
|
|
|
<div class="row">
|
2020-01-12 21:23:18 +00:00
|
|
|
<div class="col-md-3 col-sm-6">
|
2020-01-05 21:49:48 +00:00
|
|
|
<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>
|
|
|
|
</div>
|
2020-01-12 21:23:18 +00:00
|
|
|
<div class="col-md-3 col-sm-6">
|
2020-01-05 21:49:48 +00:00
|
|
|
<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>
|
2020-01-12 21:23:18 +00:00
|
|
|
<div class="col-md-3 col-sm-6">
|
2020-01-05 21:49:48 +00:00
|
|
|
<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>
|
2020-01-12 21:23:18 +00:00
|
|
|
<div class="col-md-3 col-sm-6">
|
2020-01-05 21:49:48 +00:00
|
|
|
<div class="card-counter danger">
|
|
|
|
<i class="fa fa-ban"></i>
|
2020-01-06 22:58:24 +00:00
|
|
|
<span class="count-numbers">{{ email_blocked }}</span>
|
2020-01-05 21:49:48 +00:00
|
|
|
<span class="count-name">Email Blocked</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h2 class="pt-4">Activities</h2>
|
2019-12-06 09:19:19 +00:00
|
|
|
<div class="row">
|
|
|
|
{% for log in logs %}
|
|
|
|
<div class="col-12">
|
2019-12-31 10:11:06 +00:00
|
|
|
<div class="my-2 p-2 card border-light">
|
2019-12-06 09:19:19 +00:00
|
|
|
<div class="font-weight-bold">{{ log.when | dt }}</div>
|
|
|
|
<div>
|
2019-12-09 21:40:49 +00:00
|
|
|
<span class="mr-2">{{ log.website_from or log.website_email }}</span>
|
2019-12-06 09:19:19 +00:00
|
|
|
|
|
|
|
<span>
|
|
|
|
{% if log.is_reply %}
|
|
|
|
<img src="{{ url_for('static', filename='arrows/reply-arrow.svg') }}" class="arrow">
|
|
|
|
{% elif log.blocked %}
|
|
|
|
<img src="{{ url_for('static', filename='arrows/blocked-arrow.svg') }}" class="arrow">
|
|
|
|
{% else %}
|
|
|
|
<img src="{{ url_for('static', filename='arrows/forward-arrow.svg') }}" class="arrow">
|
|
|
|
{% endif %}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="ml-2">
|
|
|
|
{{ log.alias }}
|
|
|
|
</span>
|
|
|
|
</div>
|
2019-11-16 17:45:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-12-06 09:19:19 +00:00
|
|
|
{% endfor %}
|
2019-11-16 17:45:23 +00:00
|
|
|
</div>
|
2019-12-06 09:28:00 +00:00
|
|
|
|
2019-12-31 10:11:06 +00:00
|
|
|
<nav aria-label="Alias log navigation">
|
|
|
|
<ul class="pagination">
|
2020-01-11 20:48:21 +00:00
|
|
|
<li class="page-item {% if page_id == 0 %}disabled{% endif %}">
|
|
|
|
<a class="page-link" href="{{ url_for('dashboard.alias_log', alias_id=alias_id, page_id=page_id-1) }}">Previous</a>
|
|
|
|
</li>
|
|
|
|
<li class="page-item {% if last_page %}disabled{% endif %}">
|
|
|
|
<a class="page-link" href="{{ url_for('dashboard.alias_log', alias_id=alias_id, page_id=page_id+1) }}">Next</a>
|
|
|
|
</li>
|
2019-12-31 10:11:06 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
2019-11-16 17:45:23 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block script %}
|
|
|
|
{% endblock %}
|