-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhtml.twig
More file actions
66 lines (56 loc) · 2.75 KB
/
html.twig
File metadata and controls
66 lines (56 loc) · 2.75 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{% extends '../../components/layout.twig' %}
{% block header %}
{% include '../../components/project.twig' with {project: project} %}
{% endblock %}
{% block content %}
{% set event = events[0].event %}
{% set daysRepeated = events[0].daysRepeated %}
{% set newCount = events[0].newCount %}
{% set usersAffected = events[0].usersAffected %}
<tr>
<td align="center" style="padding-top: 30px;padding-right: 0;padding-left: 0;padding-bottom: 30px;">
<font color="#969FB3" style="font-size: 14px; text-align: center; color: #969FB3; letter-spacing: 0.2px;">
<img src="{{ hostOfStatic }}/email/event-badge-icon.png" width="8" height="14" hspace="3" style="vertical-align: middle">
<span style="vertical-align: middle; display: inline-block;">
{{ event.payload.type ? event.payload.type + ': ' : '' }}{{ event.payload.title | escape }}
</span>
</font>
</td>
</tr>
<tr>
<td>
<div class="event-title-block" style="padding: 20px; border-width: 1px; border-style: solid; border-color: #494F5E; border-radius: 10px;">
<font class="event-title-block__font" color="#dbe6ff" style="font-size: 15px; line-height: 1.47; letter-spacing: 0.4px; color: #dbe6ff; text-decoration: none;">
{{ event.payload.title | escape }}
</font>
</div>
</td>
</tr>
<tr height="10">
<td></td>
</tr>
{% if event.payload.backtrace is not empty %}
<tr>
<td class="backtrace-wrap" style="padding-top: 10px; padding-right: 10px;padding-left: 10px;padding-bottom: 10px; text-decoration: none !important; color: #dbe6ff; cursor: default;">
{% include '../../components/backtrace.twig' with {backtrace: findTrace(event.payload.backtrace)} %}
</td>
</tr>
{% endif %}
<tr>
<td style="padding-top: 10px;padding-right: 20px;padding-left: 20px;padding-bottom: 5px;">
{% include '../../components/event-info.twig' with {event: {newCount: newCount, daysRepeated: daysRepeated, event: {totalCount: event.totalCount}, usersAffected: usersAffected}} %}
</td>
</tr>
<tr>
<td style="padding-top: 30px;padding-right: 20px;padding-left: 20px;padding-bottom: 40px;">
{% set eventURL = host ~ '/project/' ~ project._id ~ '/event/' ~ event._id %}
{% include '../../components/button.twig' with {href: eventURL, label: 'Смотреть детали'} %}
</td>
</tr>
{% endblock %}
{% block unsubscribeLink %}
{{ host ~ '/unsubscribe/' ~ project._id ~ '/' ~ notificationRuleId }}
{% endblock %}
{% block unsubscribeText %}
Вы получили это письмо, потому что подписаны на подобные уведомления. Вы можете изменить настройки, перейдя по ссылке выше.
{% endblock %}