Skip to content

Commit

Permalink
Merge pull request #613 from tighten/gc/fix-email-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gcavanunez authored Dec 3, 2024
2 parents ca0ddd1 + 9757f21 commit b7cfd69
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
18 changes: 9 additions & 9 deletions resources/views/emails/rejected-resource.blade.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<x-mail::message>
Hello {{ $user->name }},
Hello {{ $user->name }},

The resource you suggested on [Onramp]({{ route('welcome', ['locale' => 'en']) }}) has been rejected by one of our reviewers:
The resource you suggested on [Onramp]({{ route('welcome', ['locale' => 'en']) }}) has been rejected by one of our reviewers:

<x-mail::panel>
{{ $resource->name }}<br>
[Resource URL]({{ $resource->url }})
###### *Submitted on {{ $resource->created_at->format('d-m-Y') }}*
<x-mail::panel>
{{ $resource->name }}<br>
[Resource URL]({{ $resource->url }})
###### *Submitted on {{ $resource->created_at->format('d-m-Y') }}*

**{{ $resource->rejected_reason }}**
</x-mail::panel>
**{{ $resource->rejected_reason }}**
</x-mail::panel>

We thank you for your contribution and encourage you to submit new resources that may be useful to the community.
We thank you for your contribution and encourage you to submit new resources that may be useful to the community.
</x-mail::message>
27 changes: 15 additions & 12 deletions resources/views/emails/resource-digest.blade.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
<x-mail::message>
# Here are the latest resources:
# Here are the latest resources:

<x-mail::panel>
@foreach ($resources as $resource)
- [{{ $resource['name'] }}]({{ $resource['url'] }})
Added on {{ \Carbon\Carbon::parse($resource['created_at'])->format('F j, Y') }}
<x-mail::panel>
@foreach ($resources as $resource)
- [{{ $resource['name'] }}]({{ $resource['url'] }}) <br />
Added on {{ \Carbon\Carbon::parse($resource['created_at'])->format('F j, Y') }}

@endforeach
</x-mail::panel>
@endforeach
</x-mail::panel>

### Happy Coding!
### Happy Coding!

### Your friends at {{ config('app.name') }}
### Your friends at Tighten


<x-mail::subcopy>
You are receiving this email because you subscribed at [{{ config('app.name') }}]({{ config('app.url') }}).<br />
[Unsubscribe]({{ $unsubscribeUrl }})
</x-mail::subcopy>

<x-mail::button :url="$unsubscribeUrl">
Unsubscribe
</x-mail::button>
</x-mail::message>

0 comments on commit b7cfd69

Please sign in to comment.