From c918f4ef0247a618a5b18c7d04a72afcff97fbd8 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Fri, 3 Apr 2020 01:32:39 +0300 Subject: [PATCH] add notifications && open jenkins service --- .../resources/views/notifications/email.twig | 192 ++++++++++++++++++ 1 file changed, 192 insertions(+) create mode 100644 addons/default/visiosoft/base-theme/resources/views/notifications/email.twig diff --git a/addons/default/visiosoft/base-theme/resources/views/notifications/email.twig b/addons/default/visiosoft/base-theme/resources/views/notifications/email.twig new file mode 100644 index 000000000..e296b1b31 --- /dev/null +++ b/addons/default/visiosoft/base-theme/resources/views/notifications/email.twig @@ -0,0 +1,192 @@ + + + {% block head %} + + + + + + {{ title ?: setting_value('streams::name','Visiosoft LTD.') }} + + + + + {% endblock %} + + {% set style = { + 'body': 'margin: 0; padding: 0; width: 100%; background-color: #F2F4F6;', + 'email-wrapper': 'width: 100%; margin: 0; padding: 0; background-color: #F2F4F6;', + + 'email-masthead': 'padding: 25px 0; text-align: center;', + 'email-masthead_name': 'font-size: 16px; font-weight: bold; color: #2F3133; text-decoration: none; text-shadow: 0 1px 0 white;', + + 'email-body': 'width: 100%; margin: 0; padding: 0; border-top: 1px solid #EDEFF2; border-bottom: 1px solid #EDEFF2; background-color: #FFF;', + 'email-body_inner': 'width: auto; max-width: 570px; margin: 0 auto; padding: 0;', + 'email-body_cell': 'padding: 35px;', + + 'email-footer': 'width: auto; max-width: 570px; margin: 0 auto; padding: 0; text-align: center;', + 'email-footer_cell': 'color: #AEAEAE; padding: 35px; text-align: center;', + + 'body_action': 'width: 100%; margin: 30px auto; padding: 0; text-align: center;', + 'body_sub': 'margin-top: 25px; padding-top: 25px; border-top: 1px solid #EDEFF2;', + + 'anchor': 'color: #3869D4;', + 'header-1': 'margin-top: 0; color: #2F3133; font-size: 19px; font-weight: bold; text-align: left;', + 'paragraph': 'margin-top: 0; color: #74787E; font-size: 16px; line-height: 1.5em;', + 'paragraph-sub': 'margin-top: 0; color: #74787E; font-size: 12px; line-height: 1.5em; max-width: 570px; word-wrap: break-word;', + 'paragraph-center': 'text-align: center;', + + 'button': 'display: block; display: inline-block; width: 200px; min-height: 20px; padding: 10px; background-color: #3869D4; border-radius: 3px; color: #ffffff; font-size: 15px; line-height: 25px; text-align: center; text-decoration: none; -webkit-text-size-adjust: none;', + + 'button--green': 'background-color: #22BC66;', + 'button--red': 'background-color: #dc4d2f;', + 'button--blue': 'background-color: #3869D4;' + } %} + + {% set fontFamily = 'font-family: Arial, \'Helvetica Neue\', Helvetica, sans-serif;' %} + + + + + + +
+ + + {% block logo %} + + + + + {% endblock %} + + {% block body %} + + + + + {% endblock %} + + {% block footer %} + + + + + {% endblock %} +
+ + {{ title ?: setting_value('streams::name','Visiosoft LTD.') }} + +
+ + + + +
+ + {% block greeting %} + +

+ {{ greeting ?: (level == 'error' ? 'Whoops!' : 'Hello!') }} +

+ {% endblock %} + + {% block intro %} + + {% for line in introLines %} +

+ {% autoescape 'js' %} + {{ line|raw }} + {% endautoescape %} +

+ {% endfor %} + {% endblock %} + + {% block action %} + + {% if actionText %} + + + + +
+ {% if level == 'success' %} + {% set actionColor = 'button--green' %} + {% elseif level == 'error' %} + {% set actionColor = 'button--red' %} + {% else %} + {% set actionColor = 'button--blue' %} + {% endif %} + + + {% autoescape 'js' %} + {{ actionText|raw }} + {% endautoescape %} + +
+ {% endif %} + {% endblock %} + + {% block outro %} + + {% for line in outroLines %} +

+ {% autoescape 'js' %} + {{ line|raw }} + {% endautoescape %} +

+ {% endfor %} + {% endblock %} + + {% block salutation %} + +

+ {{ salutation ?:'Regards' }},
{{ setting_value('streams::name','Visiosoft LTD.') }} +

+ {% endblock %} + + {% block subcopy %} + + {% if actionText is defined %} + + + + +
+

+ If you’re having trouble clicking the "{{ actionText }}" button, copy and paste the URL below into your web browser: +

+ +

+ + {{ actionUrl }} + +

+
+ {% endif %} + {% endblock %} +
+
+ + + + +
+

+ © + {{ 'now'|date('Y') }} + {{ setting_value('streams::name','Visiosoft LTD.') }}. All rights reserved. +

+
+
+
+ +