Handle fortnightly digests, empty digests
This commit is contained in:
parent
77aaf4748f
commit
6eaaff513c
2 changed files with 25 additions and 18 deletions
|
@ -55,6 +55,9 @@ class Digest extends Mailable
|
||||||
case 'weekly':
|
case 'weekly':
|
||||||
$cutoffDateTime->modify('-1 week');
|
$cutoffDateTime->modify('-1 week');
|
||||||
break;
|
break;
|
||||||
|
case 'fortnightly':
|
||||||
|
$cutoffDateTime->modify('-2 weeks');
|
||||||
|
break;
|
||||||
case 'monthly':
|
case 'monthly':
|
||||||
$cutoffDateTime->modify('-1 month');
|
$cutoffDateTime->modify('-1 month');
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -37,8 +37,9 @@
|
||||||
<p>View the tracker <a href="https://track.bengoldsworthy.net">here.</a></p>
|
<p>View the tracker <a href="https://track.bengoldsworthy.net">here.</a></p>
|
||||||
<hr>
|
<hr>
|
||||||
<h2>Checkins</h2>
|
<h2>Checkins</h2>
|
||||||
<ol>
|
@if($checkins)
|
||||||
@foreach($checkins as $checkin)
|
<ol>
|
||||||
|
@foreach($checkins as $checkin)
|
||||||
<li>
|
<li>
|
||||||
<details class="checkin" id="{{ $checkin->id }}">
|
<details class="checkin" id="{{ $checkin->id }}">
|
||||||
<summary class="checkin__summary">
|
<summary class="checkin__summary">
|
||||||
|
@ -53,5 +54,8 @@
|
||||||
@endif
|
@endif
|
||||||
</details>
|
</details>
|
||||||
</li>
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
</ol>
|
</ol>
|
||||||
|
@else
|
||||||
|
<p>No new checkins</p>
|
||||||
|
@endif
|
||||||
|
|
Loading…
Reference in a new issue