mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-04 10:24:42 +02:00
[Dovecot] Quota template - better compatibility (#3783)
MS Outlook, Thunderbird, EMClient, SOGo, Roundcube
This commit is contained in:
parent
43fef9973f
commit
37e4ad7c1b
@ -1,12 +1,20 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<style>
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
font-family: Calibri, Arial, Verdana;
|
||||
}
|
||||
div {
|
||||
/* width based on text fill*/
|
||||
display: inline-block;
|
||||
table {
|
||||
border: 0;
|
||||
border-collapse: collapse;
|
||||
<!--[if mso]>
|
||||
border-spacing: 0px;
|
||||
table-layout: fixed;
|
||||
<![endif]-->
|
||||
}
|
||||
tr {
|
||||
display: flex;
|
||||
}
|
||||
#progressbar {
|
||||
color: #000;
|
||||
@ -14,40 +22,52 @@
|
||||
width: 100%;
|
||||
}
|
||||
{% if (percent >= 95) %}
|
||||
#progressbar > div {
|
||||
#progressbar {
|
||||
color: #fff;
|
||||
background-color: #FF0000;
|
||||
text-align: center;
|
||||
padding: 0.01em;
|
||||
width: {{percent}}%;
|
||||
}
|
||||
{% elif (percent < 95) and (percent >= 80) %}
|
||||
#progressbar > div {
|
||||
#progressbar {
|
||||
color: #fff;
|
||||
background-color: #FF8C00;
|
||||
text-align: center;
|
||||
padding: 0.01em;
|
||||
width: {{percent}}%;
|
||||
}
|
||||
{% else %}
|
||||
#progressbar > div {
|
||||
#progressbar {
|
||||
color: #fff;
|
||||
background-color: #00B000;
|
||||
text-align: center;
|
||||
padding: 0.01em;
|
||||
width: {{percent}}%;
|
||||
}
|
||||
{% endif %}
|
||||
#graybar {
|
||||
background-color: #D8D8D8;
|
||||
width: {{100 - percent}}%;
|
||||
}
|
||||
a:link, a:visited {
|
||||
color: #858585;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover, a:active {
|
||||
color: #4a81bf;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<p>Hi {{username}}!<br><br>
|
||||
Your mailbox is now {{percent}}% full, please consider deleting old messages to still be able to receive new mails in the future.<br>
|
||||
<div id="progressbar">
|
||||
<div>{{percent}}%</div>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
Hi {{username}}!<br /><br />
|
||||
Your mailbox is now {{percent}}% full, please consider deleting old messages to still be able to receive new mails in the future.<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="progressbar">{{percent}}%</td>
|
||||
<td id="graybar"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user