diff --git a/app/config/locale/templates/email-base.tpl b/app/config/locale/templates/email-base.tpl index 561ce73855d..c9b730f46eb 100644 --- a/app/config/locale/templates/email-base.tpl +++ b/app/config/locale/templates/email-base.tpl @@ -56,13 +56,13 @@ .main { background: {{bg-content}}; - border-radius: 3px; + border-radius: 10px; width: 100%; } .wrapper { box-sizing: border-box; - padding: 20px; + padding: 30px 30px 15px 30px; } .content-block { @@ -97,16 +97,15 @@ .btn table td { background-color: {{bg-content}}; - border-radius: 5px; + border-radius: 20px; text-align: center; } .btn a { background-color: {{bg-content}}; - border: solid 1px {{bg-cta}}; - border-radius: 5px; + border-radius: 20px; box-sizing: border-box; - color: #3498db; + color: #577590; cursor: pointer; display: inline-block; font-size: 14px; @@ -123,45 +122,17 @@ .btn-primary a { background-color: {{bg-cta}}; - border-color: {{bg-cta}}; color: {{text-cta}}; } @media only screen and (max-width: 620px) { - table[class=body] h1 { - font-size: 28px !important; - margin-bottom: 10px !important; - } - - table[class=body] p { - font-size: 16px !important; - } - - table[class=body] .wrapper { - padding: 10px !important; - } - - table[class=body] .content { - padding: 0 !important; - } - - table[class=body] .container { - padding: 0 !important; - width: 100% !important; - } - - table[class=body] .main { - border-left-width: 0 !important; - border-radius: 0 !important; - border-right-width: 0 !important; - } - - table[class=body] .btn table { - width: 100% !important; + .container { + padding: 0; + width: 100%; } - table[class=body] .btn a { - width: 100% !important; + .btn-primary a { + font-size: 13px; } } @@ -198,12 +169,11 @@ } .btn-primary table td:hover { - background-color: {{bg-cta-hover}} !important; + opacity: 0.7 !important; } .btn-primary a:hover { - background-color: {{bg-cta-hover}} !important; - border-color: {{bg-cta-hover}} !important; + opacity: 0.7 !important; } } @@ -220,15 +190,17 @@
- {{content}} - | +{{content}} |
+ |
- - - {{redirect}} - - + + {{redirect}} + \ No newline at end of file diff --git a/app/config/locale/translations/templates/es.email.auth.confirm.tpl b/app/config/locale/translations/templates/es.email.auth.confirm.tpl index 2c728ddce11..33e69819a03 100644 --- a/app/config/locale/translations/templates/es.email.auth.confirm.tpl +++ b/app/config/locale/translations/templates/es.email.auth.confirm.tpl @@ -1,4 +1,4 @@ -+ Hola {{name}},
@@ -12,4 +12,4 @@
Gracias,
- Hola, + Hola {{name}}, Te hemos enviado este correo porque {{owner}} quiere invitarte a formar parte del equipo {{team}} en {{project}}. diff --git a/app/config/locale/translations/templates/he.email.auth.confirm.tpl b/app/config/locale/translations/templates/he.email.auth.confirm.tpl index 0c1f2a36d35..585636c1c9b 100644 --- a/app/config/locale/translations/templates/he.email.auth.confirm.tpl +++ b/app/config/locale/translations/templates/he.email.auth.confirm.tpl @@ -2,7 +2,7 @@ שלום {{name}}, - נא ללחוץ על הקישור שלהלן כדי לאמת את החשבון שלך. + אנא לחץ\י על הקישור שלהלן כדי לאמת את החשבון שלך. {{cta}}diff --git a/app/config/locale/translations/templates/he.email.auth.invitation.tpl b/app/config/locale/translations/templates/he.email.auth.invitation.tpl index 9a9226a5ba2..b11cf388a48 100644 --- a/app/config/locale/translations/templates/he.email.auth.invitation.tpl +++ b/app/config/locale/translations/templates/he.email.auth.invitation.tpl @@ -5,7 +5,7 @@ הודעת דוא״ל זו נשלחה אליך כי {{owner}} ביקש להזמינך להצטרף לצוות {{team}} ב־{{project}}. - כדי להצטרף לצוות {{team}}, נא ללחוץ על הקישור: + כדי להצטרף לצוות {{team}}, אנא לחץ\י על הקישור: {{cta}}diff --git a/app/config/locale/translations/templates/he.email.auth.recovery.tpl b/app/config/locale/translations/templates/he.email.auth.recovery.tpl index e46bf1990ea..ec249408a70 100644 --- a/app/config/locale/translations/templates/he.email.auth.recovery.tpl +++ b/app/config/locale/translations/templates/he.email.auth.recovery.tpl @@ -2,7 +2,7 @@ שלום {{name}}, - נא ללחוץ על הקישור שלהלן כדי לאפס את הסיסמה שלך ב־{{project}}. + אנא לחץ\י על הקישור שלהלן כדי לאפס את הסיסמה שלך ב־{{project}}. {{cta}}diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index c3088c5b5d0..eff7c81c214 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1462,17 +1462,16 @@ $cta = new Template(__DIR__.'/../../config/locale/templates/email-cta.tpl'); $body - ->setParam('{{content}}', $content->render()) + ->setParam('{{content}}', $content->render(false)) ->setParam('{{cta}}', $cta->render()) ->setParam('{{title}}', $locale->getText('account.emails.recovery.title')) ->setParam('{{direction}}', $locale->getText('settings.direction')) ->setParam('{{project}}', $project->getAttribute('name', ['[APP-NAME]'])) ->setParam('{{name}}', $profile->getAttribute('name')) ->setParam('{{redirect}}', $url) - ->setParam('{{bg-body}}', '#f6f6f6') + ->setParam('{{bg-body}}', '#f7f7f7') ->setParam('{{bg-content}}', '#ffffff') - ->setParam('{{bg-cta}}', '#3498db') - ->setParam('{{bg-cta-hover}}', '#34495e') + ->setParam('{{bg-cta}}', '#073b4c') ->setParam('{{text-content}}', '#000000') ->setParam('{{text-cta}}', '#ffffff') ; @@ -1665,17 +1664,16 @@ $cta = new Template(__DIR__.'/../../config/locale/templates/email-cta.tpl'); $body - ->setParam('{{content}}', $content->render()) + ->setParam('{{content}}', $content->render(false)) ->setParam('{{cta}}', $cta->render()) ->setParam('{{title}}', $locale->getText('account.emails.verification.title')) ->setParam('{{direction}}', $locale->getText('settings.direction')) ->setParam('{{project}}', $project->getAttribute('name', ['[APP-NAME]'])) ->setParam('{{name}}', $user->getAttribute('name')) ->setParam('{{redirect}}', $url) - ->setParam('{{bg-body}}', '#f6f6f6') + ->setParam('{{bg-body}}', '#f7f7f7') ->setParam('{{bg-content}}', '#ffffff') - ->setParam('{{bg-cta}}', '#3498db') - ->setParam('{{bg-cta-hover}}', '#34495e') + ->setParam('{{bg-cta}}', '#073b4c') ->setParam('{{text-content}}', '#000000') ->setParam('{{text-cta}}', '#ffffff') ; diff --git a/app/controllers/api/teams.php b/app/controllers/api/teams.php index 238e6248a14..1194b720c51 100644 --- a/app/controllers/api/teams.php +++ b/app/controllers/api/teams.php @@ -433,7 +433,7 @@ $title = \sprintf($locale->getText('account.emails.invitation.title'), $team->getAttribute('name', '[TEAM-NAME]'), $project->getAttribute('name', ['[APP-NAME]'])); $body - ->setParam('{{content}}', $content->render()) + ->setParam('{{content}}', $content->render(false)) ->setParam('{{cta}}', $cta->render()) ->setParam('{{title}}', $title) ->setParam('{{direction}}', $locale->getText('settings.direction')) @@ -441,10 +441,9 @@ ->setParam('{{team}}', $team->getAttribute('name', '[TEAM-NAME]')) ->setParam('{{owner}}', $user->getAttribute('name', '')) ->setParam('{{redirect}}', $url) - ->setParam('{{bg-body}}', '#f6f6f6') + ->setParam('{{bg-body}}', '#f7f7f7') ->setParam('{{bg-content}}', '#ffffff') - ->setParam('{{bg-cta}}', '#3498db') - ->setParam('{{bg-cta-hover}}', '#34495e') + ->setParam('{{bg-cta}}', '#073b4c') ->setParam('{{text-content}}', '#000000') ->setParam('{{text-cta}}', '#ffffff') ; |