-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtext.twig
More file actions
42 lines (32 loc) · 1.85 KB
/
Copy pathtext.twig
File metadata and controls
42 lines (32 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{% set event = events[0].event %}
{% set repetitionId = events[0].repetitionId %}
{% set daysRepeated = events[0].daysRepeated %}
{% set newCount = events[0].newCount %}
{% set usersAffected = events[0].usersAffected %}
{% set newLabel = newCount ~ ' ' ~ pluralize_ru(newCount, ['новое событие', 'новых события', 'новых событий']) %}
{% if newCount == 1 %}
{# Оставить как есть #}
{% endif %}
{% set utmParams = 'utm_source=email&utm_medium=transactional&utm_campaign=event' %}
{{ newLabel }} в проекте «{{ project.name }}»
------------------------
{% if event.payload.type %}{{ event.payload.type }}: {% endif %}{{ event.payload.title | escape }}
------------------------
{% if event.payload.backtrace is not empty %}
{% if event.payload.backtrace[0] is not empty %}
{% if event.payload.backtrace[0].file is not empty %}
Located in {{ event.payload.backtrace[0].file }} at line {{ event.payload.backtrace[0].line }}.
{% endif %}
{% endif %}
{% endif %}
Это событие произошло {{ event.totalCount }} {{ pluralize_ru(event.totalCount, ['раз', 'раза', 'раз']) }} за {{ daysRepeated }} {{ pluralize_ru(daysRepeated, ['день', 'дня', 'дней']) }}.
{% if repetitionId %}
Смотреть детали: {{ host }}/project/{{ project._id }}/event/{{ event._id }}/{{ repetitionId }}/overview?{{ utmParams }}
{% else %}
Смотреть детали: {{ host }}/project/{{ project._id }}/event/{{ event._id }}/overview?{{ utmParams }}
{% endif %}
***
Вы получили это письмо, потому что подписаны на подобные уведомления. Вы можете изменить настройки, перейдя по ссылке: {{ host }}/unsubscribe/{{ project._id }}
***
Хоук
Мониторинг ошибок