Skip to content

Commit

Permalink
refs #31: Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eFrane committed Nov 24, 2017
1 parent 0e24d4e commit 18de3b2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Mail/ValidationCompleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct($validationResult)
*
* @return $this
*/
public function build(Log $log, Filesystem $fs)
public function build(Log $log)
{
$validationFilename = sprintf('OParl Validator %s.pdf', Carbon::now()->format('hi-d-m-Y'));

Expand All @@ -49,7 +49,7 @@ public function build(Log $log, Filesystem $fs)
return $this
->from('[email protected]', 'OParl Validator')
->replyTo('[email protected]', 'OParl Team')
->subject(trans('app.validation.completed'))
->subject(trans('app.validation.completed', ['endpoint' => $this->validationResult['endpoint']]))
->text('emails.validation_completed', $this->validationResult)
->attachData($pdf->output(['compress' => 1]), $validationFilename, [
'mime' => 'application/pdf',
Expand Down
20 changes: 20 additions & 0 deletions resources/assets/sass/pdf.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,25 @@ h1 {
}

table {
padding: 0;
margin: 0;

border: 1px dotted black;
border-bottom: none;
border-right: none;
font-size: 8pt;
}

tr {
padding: 0;
margin: 0;

border-bottom: 1px dotted black;
}

td,th {
padding: 0;
margin: 0;

border-right: 1px dotted black;
}

0 comments on commit 18de3b2

Please sign in to comment.