diff --git a/lemur/plugins/lemur_email/templates/config.py b/lemur/plugins/lemur_email/templates/config.py
index 49729cc7..e10caa55 100644
--- a/lemur/plugins/lemur_email/templates/config.py
+++ b/lemur/plugins/lemur_email/templates/config.py
@@ -1,5 +1,12 @@
import os
+import arrow
from jinja2 import Environment, FileSystemLoader
loader = FileSystemLoader(searchpath=os.path.dirname(os.path.realpath(__file__)))
env = Environment(loader=loader)
+
+
+def human_time(time):
+ return arrow.get(time).format('dddd, MMMM D, YYYY')
+
+env.filters['time'] = human_time
diff --git a/lemur/plugins/lemur_email/templates/expiration.html b/lemur/plugins/lemur_email/templates/expiration.html
index f30df1c0..53b98ad1 100644
--- a/lemur/plugins/lemur_email/templates/expiration.html
+++ b/lemur/plugins/lemur_email/templates/expiration.html
@@ -7,141 +7,171 @@
Lemur
-
-
-
-
-
-
-
-
-
-
-
-
-
- Notice: Your TLS certificates are expiring!
-
-
-
- Lemur, has noticed that the following certificates are expiring soon, if you rely on these certificates
- you should create new certificates to replace the certificates that are expiring.
-
-
- Visit https://{{ hostname }}/#/certificates/create to reissue them.
-
- |
-
- {% for message in messages %}
-
-
-
-
-
- Name |
-
-
- {{ message.name }} |
-
- Owner |
-
-
- {{ message.owner }} |
-
-
- Creator |
-
-
- {{ message.creator }} |
-
-
- Description |
-
-
- {{ message.description }} |
-
-
- Not Before |
-
-
- {{ message.not_before }} |
-
-
- Not After |
-
-
- {{ message.not_after }} |
-
-
- Associated Domains |
-
- {% if message.domains %}
- {% for name in message.domains %}
-
- {{ name }} |
-
- {% endfor %}
- {% else %}
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
- Unknown |
+
+ Lemur
+ |
- {% endif %}
-
- Potentially Superseded by (Lemur's best guess) |
-
- {% if message.superseded %}
- {% for name in message.superseded %}
- {{ name }} |
- {% endfor %}
- {% else %}
- Unknown |
- {% endif %}
- |
-
- |
-
- {% endfor %}
-
-
- |
-
-
-
- Lemur is broken regularly by Netflix
- |
-
-
-
-
-
-
- | |