Handle subscribers

This commit is contained in:
Joseph Cohen
2015-05-24 16:33:03 -05:00
parent 254c578ca2
commit 55dcf3a277
48 changed files with 1214 additions and 35 deletions
+1
View File
@@ -17,6 +17,7 @@ html, body {
@import "modules/well";
@import "modules/alerts";
@import "modules/panels";
@import "modules/btns";
// Styles for partials
@import "partials/base";
+37
View File
@@ -0,0 +1,37 @@
.btn-outline {
background-color: transparent;
color: inherit;
transition: all .5s;
}
.btn-default.btn-outline {
color: #999;
}
.btn-primary.btn-outline {
color: #428bca;
}
.btn-success.btn-outline {
color: #5cb85c;
}
.btn-info.btn-outline {
color: #5bc0de;
}
.btn-warning.btn-outline {
color: #f0ad4e;
}
.btn-danger.btn-outline {
color: #d9534f;
}
.btn-primary.btn-outline:hover,
.btn-success.btn-outline:hover,
.btn-info.btn-outline:hover,
.btn-warning.btn-outline:hover,
.btn-danger.btn-outline:hover {
color: #fff;
}
+38
View File
@@ -47,6 +47,44 @@ return [
'revoke' => 'API-Schlüssel löschen',
],
// Metrics
'metrics' => [
'filter' => [
'hourly' => 'Hourly',
'daily' => 'Daily',
'monthly' => 'Monthly',
],
],
// Subscriber
'subscriber' => [
'subscribe' => 'Subscribe to get the most recent updates.',
'button' => 'Subscribe',
'email' => [
'subscribe' => 'Subscribe to email updates.',
'subscribed' => 'You\'ve been subscribed to email notifications, please check your email to confirm your subscription.',
'verified' => 'Your email subscription has been confirmed. Thank you!',
'unsubscribe' => 'Unsuscribe from email updates.',
'unsubscribed' => 'Your email subscription has been cancelled.',
'failure' => 'Something went wrong with the subscription.',
'verify' => [
'text' => "Please confirm your email subscription to :app_name status updates.\n:link\nThank you, :app_name",
'html-preheader' => 'Please confirm your email subscription to :app_name status updates.',
'html' => '<p>Please confirm your email subscription to :app_name status updates.</p><p>:link</p><p>Thank you, :app_name</p>',
],
'maintenance' => [
'text' => "New maintenance has been scheduled on :app_name.\nThank you, :app_name",
'html-preheader' => 'New maintenance has been scheduled on :app_name.',
'html' => '<p>New maintenance has been scheduled on :app_name.</p><p>Thank you, :app_name</p>',
],
'incident' => [
'text' => "New incident has been reported on :app_name.\nThank you, :app_name",
'html-preheader' => 'New incident has been reported on :app_name.',
'html' => '<p>New incident has been reported on :app_name.</p><p>Thank you, :app_name</p>',
],
],
],
// Other
'powered_by' => ':app Status-Seite via <a href="https://cachethq.io">Cachet</a>.',
'about_this_site' => 'Über diese Seite',
+29
View File
@@ -58,6 +58,35 @@ return [
],
],
// Subscriber
'subscriber' => [
'subscribe' => 'Subscribe to get the most recent updates.',
'button' => 'Subscribe',
'email' => [
'subscribe' => 'Subscribe to email updates.',
'subscribed' => 'You\'ve been subscribed to email notifications, please check your email to confirm your subscription.',
'verified' => 'Your email subscription has been confirmed. Thank you!',
'unsubscribe' => 'Unsuscribe from email updates.',
'unsubscribed' => 'Your email subscription has been cancelled.',
'failure' => 'Something went wrong with the subscription.',
'verify' => [
'text' => "Please confirm your email subscription to :app_name status updates.\n:link\nThank you, :app_name",
'html-preheader' => 'Please confirm your email subscription to :app_name status updates.',
'html' => '<p>Please confirm your email subscription to :app_name status updates.</p><p>:link</p><p>Thank you, :app_name</p>',
],
'maintenance' => [
'text' => "New maintenance has been scheduled on :app_name.\nThank you, :app_name",
'html-preheader' => 'New maintenance has been scheduled on :app_name.',
'html' => '<p>New maintenance has been scheduled on :app_name.</p><p>Thank you, :app_name</p>',
],
'incident' => [
'text' => "New incident has been reported on :app_name.\nThank you, :app_name",
'html-preheader' => 'New incident has been reported on :app_name.',
'html' => '<p>New incident has been reported on :app_name.</p><p>Thank you, :app_name</p>',
],
],
],
// Other
'powered_by' => ':app Status Page is powered by <a href="https://cachethq.io">Cachet</a>.',
'about_this_site' => 'About this site',
+8 -7
View File
@@ -37,13 +37,14 @@ return [
// Incidents form fields
'incidents' => [
'name' => 'Name',
'status' => 'Status',
'component' => 'Component',
'message' => 'Message',
'message-help' => 'You may also use Markdown.',
'scheduled_at' => 'When to schedule the maintenance for?',
'incident_time' => 'When did this incident occur?',
'name' => 'Name',
'status' => 'Status',
'component' => 'Component',
'message' => 'Message',
'message-help' => 'You may also use Markdown.',
'scheduled_at' => 'When to schedule the maintenance for?',
'incident_time' => 'When did this incident occur?',
'notify_subscribers' => 'Notify subscribers',
'templates' => [
'name' => 'Name',
+38
View File
@@ -47,6 +47,44 @@ return [
'revoke' => 'Revocar API Key',
],
// Metrics
'metrics' => [
'filter' => [
'hourly' => 'Hourly',
'daily' => 'Daily',
'monthly' => 'Monthly',
],
],
// Subscriber
'subscriber' => [
'subscribe' => 'Subscribe to get the most recent updates.',
'button' => 'Subscribe',
'email' => [
'subscribe' => 'Subscribe to email updates.',
'subscribed' => 'You\'ve been subscribed to email notifications, please check your email to confirm your subscription.',
'verified' => 'Your email subscription has been confirmed. Thank you!',
'unsubscribe' => 'Unsuscribe from email updates.',
'unsubscribed' => 'Your email subscription has been cancelled.',
'failure' => 'Something went wrong with the subscription.',
'verify' => [
'text' => "Please confirm your email subscription to :app_name status updates.\n:link\nThank you, :app_name",
'html-preheader' => 'Please confirm your email subscription to :app_name status updates.',
'html' => '<p>Please confirm your email subscription to :app_name status updates.</p><p>:link</p><p>Thank you, :app_name</p>',
],
'maintenance' => [
'text' => "New maintenance has been scheduled on :app_name.\nThank you, :app_name",
'html-preheader' => 'New maintenance has been scheduled on :app_name.',
'html' => '<p>New maintenance has been scheduled on :app_name.</p><p>Thank you, :app_name</p>',
],
'incident' => [
'text' => "New incident has been reported on :app_name.\nThank you, :app_name",
'html-preheader' => 'New incident has been reported on :app_name.',
'html' => '<p>New incident has been reported on :app_name.</p><p>Thank you, :app_name</p>',
],
],
],
// Other
'powered_by' => ':app La página de estado es alimentada por <a href="https://cachethq.github.io">Cachet</a>.',
'about_this_site' => 'Acerca de este sitio',
+29
View File
@@ -58,6 +58,35 @@ return [
],
],
// Subscriber
'subscriber' => [
'subscribe' => 'Subscribe to get the most recent updates.',
'button' => 'Subscribe',
'email' => [
'subscribe' => 'Subscribe to email updates.',
'subscribed' => 'You\'ve been subscribed to email notifications, please check your email to confirm your subscription.',
'verified' => 'Your email subscription has been confirmed. Thank you!',
'unsubscribe' => 'Unsuscribe from email updates.',
'unsubscribed' => 'Your email subscription has been cancelled.',
'failure' => 'Something went wrong with the subscription.',
'verify' => [
'text' => "Please confirm your email subscription to :app_name status updates.\n:link\nThank you, :app_name",
'html-preheader' => 'Please confirm your email subscription to :app_name status updates.',
'html' => '<p>Please confirm your email subscription to :app_name status updates.</p><p>:link</p><p>Thank you, :app_name</p>',
],
'maintenance' => [
'text' => "New maintenance has been scheduled on :app_name.\nThank you, :app_name",
'html-preheader' => 'New maintenance has been scheduled on :app_name.',
'html' => '<p>New maintenance has been scheduled on :app_name.</p><p>Thank you, :app_name</p>',
],
'incident' => [
'text' => "New incident has been reported on :app_name.\nThank you, :app_name",
'html-preheader' => 'New incident has been reported on :app_name.',
'html' => '<p>New incident has been reported on :app_name.</p><p>Thank you, :app_name</p>',
],
],
],
// Other
'powered_by' => ':app Status Page est propulsé par <a href="https://cachethq.github.io">Cachet</a>.',
'about_this_site' => 'À propos de ce site',
+29
View File
@@ -58,6 +58,35 @@ return [
],
],
// Subscriber
'subscriber' => [
'subscribe' => 'Subscribe to get the most recent updates.',
'button' => 'Subscribe',
'email' => [
'subscribe' => 'Subscribe to email updates.',
'subscribed' => 'You\'ve been subscribed to email notifications, please check your email to confirm your subscription.',
'verified' => 'Your email subscription has been confirmed. Thank you!',
'unsubscribe' => 'Unsuscribe from email updates.',
'unsubscribed' => 'Your email subscription has been cancelled.',
'failure' => 'Something went wrong with the subscription.',
'verify' => [
'text' => "Please confirm your email subscription to :app_name status updates.\n:link\nThank you, :app_name",
'html-preheader' => 'Please confirm your email subscription to :app_name status updates.',
'html' => '<p>Please confirm your email subscription to :app_name status updates.</p><p>:link</p><p>Thank you, :app_name</p>',
],
'maintenance' => [
'text' => "New maintenance has been scheduled on :app_name.\nThank you, :app_name",
'html-preheader' => 'New maintenance has been scheduled on :app_name.',
'html' => '<p>New maintenance has been scheduled on :app_name.</p><p>Thank you, :app_name</p>',
],
'incident' => [
'text' => "New incident has been reported on :app_name.\nThank you, :app_name",
'html-preheader' => 'New incident has been reported on :app_name.',
'html' => '<p>New incident has been reported on :app_name.</p><p>Thank you, :app_name</p>',
],
],
],
// Other
'powered_by' => 'Halaman Status :app dibuat dengan <a href="https://cachethq.io">Cachet</a>.',
'about_this_site' => 'Tentang situs ini',
+29
View File
@@ -58,6 +58,35 @@ return [
],
],
// Subscriber
'subscriber' => [
'subscribe' => 'Subscribe to get the most recent updates.',
'button' => 'Subscribe',
'email' => [
'subscribe' => 'Subscribe to email updates.',
'subscribed' => 'You\'ve been subscribed to email notifications, please check your email to confirm your subscription.',
'verified' => 'Your email subscription has been confirmed. Thank you!',
'unsubscribe' => 'Unsuscribe from email updates.',
'unsubscribed' => 'Your email subscription has been cancelled.',
'failure' => 'Something went wrong with the subscription.',
'verify' => [
'text' => "Please confirm your email subscription to :app_name status updates.\n:link\nThank you, :app_name",
'html-preheader' => 'Please confirm your email subscription to :app_name status updates.',
'html' => '<p>Please confirm your email subscription to :app_name status updates.</p><p>:link</p><p>Thank you, :app_name</p>',
],
'maintenance' => [
'text' => "New maintenance has been scheduled on :app_name.\nThank you, :app_name",
'html-preheader' => 'New maintenance has been scheduled on :app_name.',
'html' => '<p>New maintenance has been scheduled on :app_name.</p><p>Thank you, :app_name</p>',
],
'incident' => [
'text' => "New incident has been reported on :app_name.\nThank you, :app_name",
'html-preheader' => 'New incident has been reported on :app_name.',
'html' => '<p>New incident has been reported on :app_name.</p><p>Thank you, :app_name</p>',
],
],
],
// Other
'powered_by' => 'De statuspagina van :app is mogelijk gemaakt door <a href="https://cachethq.io">Cachet</a>.',
'about_this_site' => 'Over deze site',
+29
View File
@@ -58,6 +58,35 @@ return [
],
],
// Subscriber
'subscriber' => [
'subscribe' => 'Subscribe to get the most recent updates.',
'button' => 'Subscribe',
'email' => [
'subscribe' => 'Subscribe to email updates.',
'subscribed' => 'You\'ve been subscribed to email notifications, please check your email to confirm your subscription.',
'verified' => 'Your email subscription has been confirmed. Thank you!',
'unsubscribe' => 'Unsuscribe from email updates.',
'unsubscribed' => 'Your email subscription has been cancelled.',
'failure' => 'Something went wrong with the subscription.',
'verify' => [
'text' => "Please confirm your email subscription to :app_name status updates.\n:link\nThank you, :app_name",
'html-preheader' => 'Please confirm your email subscription to :app_name status updates.',
'html' => '<p>Please confirm your email subscription to :app_name status updates.</p><p>:link</p><p>Thank you, :app_name</p>',
],
'maintenance' => [
'text' => "New maintenance has been scheduled on :app_name.\nThank you, :app_name",
'html-preheader' => 'New maintenance has been scheduled on :app_name.',
'html' => '<p>New maintenance has been scheduled on :app_name.</p><p>Thank you, :app_name</p>',
],
'incident' => [
'text' => "New incident has been reported on :app_name.\nThank you, :app_name",
'html-preheader' => 'New incident has been reported on :app_name.',
'html' => '<p>New incident has been reported on :app_name.</p><p>Thank you, :app_name</p>',
],
],
],
// Other
'powered_by' => ':app Status Page is powered by <a href="https://cachethq.io">Cachet</a>.',
'about_this_site' => 'O tej stronie',
+29
View File
@@ -58,6 +58,35 @@ return [
],
],
// Subscriber
'subscriber' => [
'subscribe' => 'Subscribe to get the most recent updates.',
'button' => 'Subscribe',
'email' => [
'subscribe' => 'Subscribe to email updates.',
'subscribed' => 'You\'ve been subscribed to email notifications, please check your email to confirm your subscription.',
'verified' => 'Your email subscription has been confirmed. Thank you!',
'unsubscribe' => 'Unsuscribe from email updates.',
'unsubscribed' => 'Your email subscription has been cancelled.',
'failure' => 'Something went wrong with the subscription.',
'verify' => [
'text' => "Please confirm your email subscription to :app_name status updates.\n:link\nThank you, :app_name",
'html-preheader' => 'Please confirm your email subscription to :app_name status updates.',
'html' => '<p>Please confirm your email subscription to :app_name status updates.</p><p>:link</p><p>Thank you, :app_name</p>',
],
'maintenance' => [
'text' => "New maintenance has been scheduled on :app_name.\nThank you, :app_name",
'html-preheader' => 'New maintenance has been scheduled on :app_name.',
'html' => '<p>New maintenance has been scheduled on :app_name.</p><p>Thank you, :app_name</p>',
],
'incident' => [
'text' => "New incident has been reported on :app_name.\nThank you, :app_name",
'html-preheader' => 'New incident has been reported on :app_name.',
'html' => '<p>New incident has been reported on :app_name.</p><p>Thank you, :app_name</p>',
],
],
],
// Other
'powered_by' => ':app Esta Status Page é fornecida por <a href="https://cachethq.github.io">Cachet</a>.',
'about_this_site' => 'Sobre este site',
+29
View File
@@ -58,6 +58,35 @@ return [
],
],
// Subscriber
'subscriber' => [
'subscribe' => 'Subscribe to get the most recent updates.',
'button' => 'Subscribe',
'email' => [
'subscribe' => 'Subscribe to email updates.',
'subscribed' => 'You\'ve been subscribed to email notifications, please check your email to confirm your subscription.',
'verified' => 'Your email subscription has been confirmed. Thank you!',
'unsubscribe' => 'Unsuscribe from email updates.',
'unsubscribed' => 'Your email subscription has been cancelled.',
'failure' => 'Something went wrong with the subscription.',
'verify' => [
'text' => "Please confirm your email subscription to :app_name status updates.\n:link\nThank you, :app_name",
'html-preheader' => 'Please confirm your email subscription to :app_name status updates.',
'html' => '<p>Please confirm your email subscription to :app_name status updates.</p><p>:link</p><p>Thank you, :app_name</p>',
],
'maintenance' => [
'text' => "New maintenance has been scheduled on :app_name.\nThank you, :app_name",
'html-preheader' => 'New maintenance has been scheduled on :app_name.',
'html' => '<p>New maintenance has been scheduled on :app_name.</p><p>Thank you, :app_name</p>',
],
'incident' => [
'text' => "New incident has been reported on :app_name.\nThank you, :app_name",
'html-preheader' => 'New incident has been reported on :app_name.',
'html' => '<p>New incident has been reported on :app_name.</p><p>Thank you, :app_name</p>',
],
],
],
// Other
'powered_by' => ':app 应用状态页面由 <a href="https://cachethq.io">Cachet</a>提供支持。',
'about_this_site' => '关于此站点',
+29
View File
@@ -58,6 +58,35 @@ return [
],
],
// Subscriber
'subscriber' => [
'subscribe' => 'Subscribe to get the most recent updates.',
'button' => 'Subscribe',
'email' => [
'subscribe' => 'Subscribe to email updates.',
'subscribed' => 'You\'ve been subscribed to email notifications, please check your email to confirm your subscription.',
'verified' => 'Your email subscription has been confirmed. Thank you!',
'unsubscribe' => 'Unsuscribe from email updates.',
'unsubscribed' => 'Your email subscription has been cancelled.',
'failure' => 'Something went wrong with the subscription.',
'verify' => [
'text' => "Please confirm your email subscription to :app_name status updates.\n:link\nThank you, :app_name",
'html-preheader' => 'Please confirm your email subscription to :app_name status updates.',
'html' => '<p>Please confirm your email subscription to :app_name status updates.</p><p>:link</p><p>Thank you, :app_name</p>',
],
'maintenance' => [
'text' => "New maintenance has been scheduled on :app_name.\nThank you, :app_name",
'html-preheader' => 'New maintenance has been scheduled on :app_name.',
'html' => '<p>New maintenance has been scheduled on :app_name.</p><p>Thank you, :app_name</p>',
],
'incident' => [
'text' => "New incident has been reported on :app_name.\nThank you, :app_name",
'html-preheader' => 'New incident has been reported on :app_name.',
'html' => '<p>New incident has been reported on :app_name.</p><p>Thank you, :app_name</p>',
],
],
],
// Other
'powered_by' => ':app 狀態頁是由 <a href="https://cachethq.io">Cachet</a> 提供。',
'about_this_site' => '關於本站',
@@ -99,6 +99,11 @@
<input type="text" name="incident[created_at]" class="form-control" rel="datepicker-any">
<span class="help-block">{{ trans('forms.optional') }}</span>
</div>
<div class="form-group">
<label>{{ trans('forms.incidents.notify_subscribers') }}</label>
<input type="checkbox" name="incident[notify]" value="1" checked="{{ Input::old('incident.message', 'checked') }}">
<span class="help-block">{{ trans('forms.optional') }}</span>
</div>
</fieldset>
<div class="form-group">
@@ -42,6 +42,11 @@
<label>{{ trans('forms.incidents.scheduled_at') }}</label>
<input type="text" name="incident[scheduled_at]" class="form-control" rel="datepicker" required>
</div>
<div class="form-group">
<label>{{ trans('forms.incidents.notify_subscribers') }}</label>
<input type="checkbox" name="incident[notify]" value="1" checked="{{ Input::old('incident.message', 'checked') }}">
<span class="help-block">{{ trans('forms.optional') }}</span>
</div>
</fieldset>
<div class="form-group">
@@ -0,0 +1,24 @@
@extends('layout.emails')
@section('preheader')
{!! trans('cachet.subscriber.email.maintenance.html-preheader', ['app_name' => Setting::get('app_name')]) !!}
@stop
@section('content')
{!! trans('cachet.subscriber.email.maintenance.html', ['app_name' => Setting::get('app_name')]) !!}
<p>
{!! $status !!}
</p>
<p>
{!! $htmlContent !!}
</p>
@if(Setting::get('show_support'))
<p>{!! trans('cachet.powered_by', ['app' => Setting::get('app_name')]) !!}</p>
@endif
<p>
<small><a href="{{ route('unsubscribe', $token) }}">{!! trans('cachet.subscriber.email.unsuscribe') !!}</a></small>
</p>
@stop
@@ -0,0 +1,11 @@
{!! trans('cachet.subscriber.email.maintenance.text', ['app_name' => Setting::get('app_name')]) !!}
{!! $status !!}
{!! $textContent !!}
@if(Setting::get('show_support'))
{!! trans('cachet.powered_by', ['app' => Setting::get('app_name')]) !!}
@endif
{!! trans('cachet.subscriber.email.unsuscribe') !!} {{ route('unsubscribe', $token) }}
@@ -0,0 +1,24 @@
@extends('layout.emails')
@section('preheader')
{!! trans('cachet.subscriber.email.incident.html-preheader', ['app_name' => Setting::get('app_name')]) !!}
@stop
@section('content')
{!! trans('cachet.subscriber.email.incident.html-preheader', ['app_name' => Setting::get('app_name')]) !!}
<p>
{!! $status !!}
</p>
<p>
{!! $htmlContent !!}
</p>
@if(Setting::get('show_support'))
<p>{!! trans('cachet.powered_by', ['app' => Setting::get('app_name')]) !!}</p>
@endif
<p>
<small><a href="{{ route('unsubscribe', $token) }}">{!! trans('cachet.subscriber.email.unsuscribe') !!}</a></small>
</p>
@stop
@@ -0,0 +1,11 @@
{!! trans('cachet.subscriber.email.incident.text', ['app_name' => Setting::get('app_name')]) !!}
{!! $status !!}
{!! $textContent !!}
@if(Setting::get('show_support'))
{!! trans('cachet.powered_by', ['app' => Setting::get('app_name')]) !!}
@endif
{!! trans('cachet.subscriber.email.unsuscribe') !!} {{ route('unsubscribe', $token) }}
@@ -0,0 +1,13 @@
@extends('layout.emails')
@section('preheader')
{!! trans('cachet.subscriber.email.verify.html-preheader') !!}
@stop
@section('content')
{!! trans('cachet.subscriber.email.verify.html', ['app_name' => Setting::get('app_name'), 'link' => $link]) !!}
@if(Setting::get('show_support'))
<p>{!! trans('cachet.powered_by', ['app' => Setting::get('app_name')]) !!}</p>
@endif
@stop
@@ -0,0 +1,5 @@
{{ trans('cachet.subscriber.email.verify.text', ['app_name' => Setting::get('app_name'), 'link' => $link]) }}
@if(Setting::get('show_support'))
{!! trans('cachet.powered_by', ['app' => Setting::get('app_name')]) !!}
@endif
+8
View File
@@ -1,6 +1,14 @@
@extends('layout.master')
@section('content')
<div class="pull-right">
<p><a class="btn btn-success btn-outline" href="{{ route('subscribe') }}">{{ trans('cachet.subscriber.button') }}</a></p>
</div>
<div class="clearfix"></div>
@include('partials.dashboard.errors')
@if($bannerImage = Setting::get('app_banner'))
<div class="row app-banner">
<div class="col-md-12 text-center">
+7 -15
View File
@@ -4,7 +4,7 @@
<meta charset="utf-8"> <!-- utf-8 works for most cases -->
<meta name="viewport" content="width=device-width"> <!-- Forcing initial-scale shouldn't be necessary -->
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Use the latest (edge) version of IE rendering engine -->
<title>CachetHQ</title> <!-- the <title> tag shows on email notifications on Android 4.4. -->
<title>{{ Setting::get('app_name') }} Status</title> <!-- the <title> tag shows on email notifications on Android 4.4. -->
<style type="text/css">
/* ensure that clients don't add any padding or spaces around the email design and allow us to style emails for the entire width of the preview pane */
@@ -107,7 +107,7 @@
<td>
<!-- Hidden Preheader Text : BEGIN -->
<div style="display:none; visibility:hidden; opacity:0; color:transparent; height:0; width:0;line-height:0; overflow:hidden;mso-hide: all;">
Visually hidden preheader text.
@yield('preheader')
</div>
<!-- Hidden Preheader Text : END -->
@@ -125,11 +125,13 @@
<tr>
<td>
<table border="0" width="100%" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
@if($bannerImage = Setting::get('app_banner'))
<tr>
<td bgcolor="#F0F3F4" style="padding: 40px; font-family: sans-serif; font-size: 20px; line-height: 27px; color: #666666; text-align: center;">
<img src="{{ $message->embed('img/cachet-logo.svg') }}" width="300" alt="CachetHQ">
</td>
<td bgcolor="#F0F3F4" style="padding: 40px; font-family: sans-serif; font-size: 20px; line-height: 27px; color: #666666; text-align: center;">
<a href="{{ $appUrl }}"><img src="data:{{ $bannerType }};base64, {{ $bannerImage}}" class="banner-image img-responsive"></a>
</td>
</tr>
@endif
<tr>
<td>
<!-- 2 x 2 grid : BEGIN -->
@@ -148,16 +150,6 @@
</table>
</td>
</tr>
<!-- Footer : BEGIN -->
<tr>
<td style="text-align: center;padding: 40px 0;font-family: sans-serif; font-size: 12px; line-height: 18px;color: #888888;">
If you no longer wish to receive these emails, you can <unsubscribe style="color: #444444; padding: 0;text-decoration: underline">unsubscribe</unsubscribe>.<br>
Company Name &bull; 123 Fake Street, SpringField, Oregon 97477 US &bull; <span class="mobile_link">(123) 456-7890</span><br><br>
</td>
</tr>
<!-- Footer : END -->
</table>
<!-- Email wrapper : END -->
+37
View File
@@ -0,0 +1,37 @@
@extends('layout.master')
@section('content')
@if($bannerImage = Setting::get('app_banner'))
<div class="row app-banner">
<div class="col-md-12 text-center">
<?php $bannerType = Setting::get('app_banner_type') ?>
@if($appUrl = Setting::get('app_domain'))
<a href="{{ $appUrl }}"><img src="data:{{ $bannerType }};base64, {{ $bannerImage}}" class="banner-image img-responsive"></a>
@else
<img src="data:{{ $bannerType }};base64, {{ $bannerImage}}" class="banner-image img-responsive">
@endif
</div>
</div>
@endif
@if($aboutApp)
<div class="about-app">
<h1>{{ trans('cachet.about_this_site') }}</h1>
<p>{!! $aboutApp !!}</p>
</div>
@endif
@include('partials.dashboard.errors')
<h1>{{ trans('cachet.subscriber.subscribe') }}</h1>
<form action="{{ route('subscribe') }}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="form-group">
<label for="email">{{ trans('cachet.subscriber.email.subscribe') }}</label>
<input class="form-control" type="text" name="email">
</div>
<div class="form-group">
<input class="btn btn-success btn-outline" type="submit" value="{{ trans('cachet.subscriber.button') }}">
</div>
</form>
@stop