1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Minor fixes for documents

This commit is contained in:
David Bomba 2023-03-12 16:37:00 +11:00
parent e48d521d03
commit 1c89e539cf
2 changed files with 5 additions and 0 deletions

View File

@ -109,6 +109,7 @@ class EmailDefaults
$this->template = $this->email->email_object->settings->email_style;
match ($this->email->email_object->settings->email_style) {
'plain' => $this->template = 'email.template.plain',
'light' => $this->template = 'email.template.client',
'dark' => $this->template = 'email.template.client',
'custom' => $this->template = 'email.template.custom',

View File

@ -984,6 +984,10 @@ html {
*/
private function buildViewButton(string $link, string $text): string
{
if($this->settings->email_style == 'plain')
return '<a href="'. $link .'" target="_blank">'. $text .'</a>';
return '
<div>
<!--[if (gte mso 9)|(IE)]>