summaryrefslogtreecommitdiff
path: root/app/views/notify/prometheus_alert_fired_email.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/notify/prometheus_alert_fired_email.html.haml')
-rw-r--r--app/views/notify/prometheus_alert_fired_email.html.haml6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/notify/prometheus_alert_fired_email.html.haml b/app/views/notify/prometheus_alert_fired_email.html.haml
index 75ba66b44f9..cdc97d583df 100644
--- a/app/views/notify/prometheus_alert_fired_email.html.haml
+++ b/app/views/notify/prometheus_alert_fired_email.html.haml
@@ -1,5 +1,9 @@
+- body = @alert.resolved? ? _('An alert has been resolved in %{project_path}.') : _('An alert has been triggered in %{project_path}.')
+
+%p
+ = body % { project_path: @alert.project.full_path }
%p
- = _('An alert has been triggered in %{project_path}.') % { project_path: @alert.project.full_path }
+ = link_to(_('View alert details.'), @alert.details_url)
- if description = @alert.description
%p