Skip to content

A free open source IT asset/license management system

Updated markdown templates

snipebf9e53fbe701
diff --git a/resources/views/vendor/mail/html/button.blade.php b/resources/views/vendor/mail/html/button.blade.php
index bf35c79183..d760329c17 100644
--- a/resources/views/vendor/mail/html/button.blade.php
+++ b/resources/views/vendor/mail/html/button.blade.php
@@ -1,19 +1,19 @@
-<table class="action" align="center" width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td align="center">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td align="center">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td>
- <a href="{{ $url }}" class="button button-{{ $color ?? 'blue' }}" target="_blank">{{ $slot }}</a>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
+<table class="action" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation">
+<tr>
+<td align="center">
+<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
+<tr>
+<td align="center">
+<table border="0" cellpadding="0" cellspacing="0" role="presentation">
+<tr>
+<td>
+<a href="{{ $url }}" class="button button-{{ $color ?? 'primary' }}" target="_blank">{{ $slot }}</a>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+</td>
+</tr>
</table>
diff --git a/resources/views/vendor/mail/html/footer.blade.php b/resources/views/vendor/mail/html/footer.blade.php
index c3f9360abd..3ff41f89cb 100644
--- a/resources/views/vendor/mail/html/footer.blade.php
+++ b/resources/views/vendor/mail/html/footer.blade.php
@@ -1,11 +1,11 @@
<tr>
- <td>
- <table class="footer" align="center" width="570" cellpadding="0" cellspacing="0">
- <tr>
- <td class="content-cell" align="center">
- {{ Illuminate\Mail\Markdown::parse($slot) }}
- </td>
- </tr>
- </table>
- </td>
+<td>
+<table class="footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
+<tr>
+<td class="content-cell" align="center">
+{{ Illuminate\Mail\Markdown::parse($slot) }}
+</td>
+</tr>
+</table>
+</td>
</tr>
diff --git a/resources/views/vendor/mail/html/header.blade.php b/resources/views/vendor/mail/html/header.blade.php
index 7e884285bd..79971d9e8a 100644
--- a/resources/views/vendor/mail/html/header.blade.php
+++ b/resources/views/vendor/mail/html/header.blade.php
@@ -1,35 +1,7 @@
<tr>
- <td class="header"{!! ($snipeSettings->header_color!='') ? ' style="background-color: '.e($snipeSettings->header_color).'"' : '' !!}>
-
- @if (($snipeSettings->show_images_in_email=='1' ) && ($snipeSettings::setupCompleted()))
-
- <!-- show text and logo -->
- @if ($snipeSettings->brand == '3')
- @if ($snipeSettings->email_logo!='')
- <img class="logo-text" src="{{ Storage::disk('public')->url('').e($snipeSettings->email_logo) }}"alt="{{ $snipeSettings->site_name }}">
- @elseif ($snipeSettings->logo!='')
- <img class="logo-text" src="{{ Storage::disk('public')->url('').e($snipeSettings->logo) }}"alt="{{ $snipeSettings->site_name }}">
- @endif
-
- {{ $snipeSettings->site_name }}
-
-
- <!-- show only logo -->
- @elseif ($snipeSettings->brand == '2')
- @if ($snipeSettings->email_logo!='')
- <img class="logo-only" style="float:left" src="{{ Storage::disk('public')->url('').e($snipeSettings->email_logo) }}" alt="{{ $snipeSettings->site_name }}">
- @elseif ($snipeSettings->logo!='')
- <img class="logo-only" src="{{ Storage::disk('public')->url('').e($snipeSettings->logo) }}" alt="{{ $snipeSettings->site_name }}">
- @endif
-
- <!-- show only text -->
- @else
- {{ $snipeSettings->site_name }}
- @endif
-
-
- @else
- {{ $snipeSettings->site_name }}
- @endif
- </td>
+<td class="header">
+<a href="{{ $url }}">
+{{ $slot }}
+</a>
+</td>
</tr>
diff --git a/resources/views/vendor/mail/html/layout.blade.php b/resources/views/vendor/mail/html/layout.blade.php
index 4c537ac380..02a54e2da7 100644
--- a/resources/views/vendor/mail/html/layout.blade.php
+++ b/resources/views/vendor/mail/html/layout.blade.php
@@ -1,60 +1,54 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<meta name="viewport" content="width=device-width, initial-scale=1.0" />
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
- <style>
- @media only screen and (max-width: 600px) {
- .inner-body {
- width: 100% !important;
- }
+<style>
+@media only screen and (max-width: 600px) {
+.inner-body {
+width: 100% !important;
+}
- .footer {
- width: 100% !important;
- }
- }
+.footer {
+width: 100% !important;
+}
+}
- @media only screen and (max-width: 500px) {
- .button {
- width: 100% !important;
- }
- }
- .logo {
- width:50px;
- height:50px;
- }
- </style>
+@media only screen and (max-width: 500px) {
+.button {
+width: 100% !important;
+}
+}
+</style>
- <table class="wrapper" width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td align="center">
- <table class="content" width="100%" cellpadding="0" cellspacing="0">
- {{ $header ?? '' }}
+<table class="wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation">
+<tr>
+<td align="center">
+<table class="content" width="100%" cellpadding="0" cellspacing="0" role="presentation">
+{{ $header ?? '' }}
- <!-- Email Body -->
- <tr>
- <td class="body" width="100%" cellpadding="0" cellspacing="0">
- <table class="inner-body" align="center" width="90%" cellpadding="0" cellspacing="0">
- <!-- Body content -->
- <tr>
- <td class="content-cell">
- {{ Illuminate\Mail\Markdown::parse($slot) }}
+<!-- Email Body -->
+<tr>
+<td class="body" width="100%" cellpadding="0" cellspacing="0">
+<table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
+<!-- Body content -->
+<tr>
+<td class="content-cell">
+{{ Illuminate\Mail\Markdown::parse($slot) }}
- {{ $subcopy ?? '' }}
- </td>
- </tr>
- </table>
- </td>
- </tr>
+{{ $subcopy ?? '' }}
+</td>
+</tr>
+</table>
+</td>
+</tr>
- {{ $footer ?? '' }}
-
- </table>
- </td>
- </tr>
- </table>
+{{ $footer ?? '' }}
+</table>
+</td>
+</tr>
+</table>
</body>
</html>
-
\ No newline at end of file
diff --git a/resources/views/vendor/mail/html/panel.blade.php b/resources/views/vendor/mail/html/panel.blade.php
index 8eb7d137e4..2975a60a02 100644
--- a/resources/views/vendor/mail/html/panel.blade.php
+++ b/resources/views/vendor/mail/html/panel.blade.php
@@ -1,7 +1,7 @@
-<table class="panel" width="100%" cellpadding="0" cellspacing="0">
+<table class="panel" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td class="panel-content">
-<table width="100%" cellpadding="0" cellspacing="0">
+<table width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td class="panel-item">
{{ Illuminate\Mail\Markdown::parse($slot) }}
@@ -11,3 +11,4 @@
</td>
</tr>
</table>
+
diff --git a/resources/views/vendor/mail/html/promotion.blade.php b/resources/views/vendor/mail/html/promotion.blade.php
index 0debcf8a38..8fef44c97b 100644
--- a/resources/views/vendor/mail/html/promotion.blade.php
+++ b/resources/views/vendor/mail/html/promotion.blade.php
@@ -1,7 +1,7 @@
-<table class="promotion" align="center" width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td align="center">
- {{ Illuminate\Mail\Markdown::parse($slot) }}
- </td>
- </tr>
+<table class="promotion" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation">
+<tr>
+<td align="center">
+{{ Illuminate\Mail\Markdown::parse($slot) }}
+</td>
+</tr>
</table>
diff --git a/resources/views/vendor/mail/html/promotion/button.blade.php b/resources/views/vendor/mail/html/promotion/button.blade.php
index 8e79081c52..1dcb2ee468 100644
--- a/resources/views/vendor/mail/html/promotion/button.blade.php
+++ b/resources/views/vendor/mail/html/promotion/button.blade.php
@@ -1,7 +1,7 @@
-<table width="100%" border="0" cellpadding="0" cellspacing="0">
+<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td align="center">
- <table border="0" cellpadding="0" cellspacing="0">
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td>
<a href="{{ $url }}" class="button button-green" target="_blank">{{ $slot }}</a>
diff --git a/resources/views/vendor/mail/html/subcopy.blade.php b/resources/views/vendor/mail/html/subcopy.blade.php
index c3df7b4c0a..790ce6c249 100644
--- a/resources/views/vendor/mail/html/subcopy.blade.php
+++ b/resources/views/vendor/mail/html/subcopy.blade.php
@@ -1,7 +1,7 @@
-<table class="subcopy" width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td>
- {{ Illuminate\Mail\Markdown::parse($slot) }}
- </td>
- </tr>
+<table class="subcopy" width="100%" cellpadding="0" cellspacing="0" role="presentation">
+<tr>
+<td>
+{{ Illuminate\Mail\Markdown::parse($slot) }}
+</td>
+</tr>
</table>
diff --git a/resources/views/vendor/mail/markdown/message.blade.php b/resources/views/vendor/mail/markdown/message.blade.php
index 895f738821..862611099e 100644
--- a/resources/views/vendor/mail/markdown/message.blade.php
+++ b/resources/views/vendor/mail/markdown/message.blade.php
@@ -1,39 +1,39 @@
@component('mail::layout')
- {{-- Header --}}
- @slot('header')
- @component('mail::header', ['url' => config('app.url')])
- @if (($snipeSettings->show_images_in_email=='1' ) && ($snipeSettings::setupCompleted()))
+{{-- Header --}}
+@slot('header')
+@component('mail::header', ['url' => config('app.url')])
+@if (($snipeSettings->show_images_in_email=='1' ) && ($snipeSettings::setupCompleted()))
- @if ($snipeSettings->brand == '3')
- @if ($snipeSettings->logo!='')
- <img class="navbar-brand-img logo" src="{{ url('/') }}/uploads/{{ $snipeSettings->logo }}">
- @endif
- {{ $snipeSettings->site_name }}
+@if ($snipeSettings->brand == '3')
+@if ($snipeSettings->logo!='')
+<img class="navbar-brand-img logo" src="{{ url('/') }}/uploads/{{ $snipeSettings->logo }}">
+@endif
+{{ $snipeSettings->site_name }}
- @elseif ($snipeSettings->brand == '2')
- @if ($snipeSettings->logo!='')
- <img class="navbar-brand-img logo" src="{{ url('/') }}/uploads/{{ $snipeSettings->logo }}">
- @endif
- @else
- {{ $snipeSettings->site_name }}
- @endif
- @else
- Snipe-IT
- @endif
- @endcomponent
- @endslot
+@elseif ($snipeSettings->brand == '2')
+@if ($snipeSettings->logo!='')
+<img class="navbar-brand-img logo" src="{{ url('/') }}/uploads/{{ $snipeSettings->logo }}">
+@endif
+@else
+{{ $snipeSettings->site_name }}
+@endif
+@else
+Snipe-IT
+@endif
+@endcomponent
+@endslot
- {{-- Body --}}
- {{ $slot }}
+{{-- Body --}}
+{{ $slot }}
- {{-- Subcopy --}}
- @isset($subcopy)
- @slot('subcopy')
- @component('mail::subcopy')
- {{ $subcopy }}
- @endcomponent
- @endslot
- @endisset
+{{-- Subcopy --}}
+@isset($subcopy)
+@slot('subcopy')
+@component('mail::subcopy')
+{{ $subcopy }}
+@endcomponent
+@endslot
+@endisset
{{-- Footer --}}
@slot('footer')