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:
parent
e48d521d03
commit
1c89e539cf
@ -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',
|
||||
|
@ -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)]>
|
||||
|
Loading…
Reference in New Issue
Block a user