From 18de3b27b28cde2097151fed4e9c27569570b46c Mon Sep 17 00:00:00 2001 From: Stefan Graupner Date: Fri, 24 Nov 2017 22:27:58 +0100 Subject: [PATCH] refs #31: Minor fixes --- app/Mail/ValidationCompleted.php | 4 ++-- resources/assets/sass/pdf.scss | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/app/Mail/ValidationCompleted.php b/app/Mail/ValidationCompleted.php index 80157313..ee62ea4d 100644 --- a/app/Mail/ValidationCompleted.php +++ b/app/Mail/ValidationCompleted.php @@ -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')); @@ -49,7 +49,7 @@ public function build(Log $log, Filesystem $fs) return $this ->from('bot@oparl.org', 'OParl Validator') ->replyTo('info@oparl.org', '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', diff --git a/resources/assets/sass/pdf.scss b/resources/assets/sass/pdf.scss index 6804608a..533f0589 100644 --- a/resources/assets/sass/pdf.scss +++ b/resources/assets/sass/pdf.scss @@ -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; } \ No newline at end of file