Consistency and SQL Query optimisations - focused around the UI
This commit is contained in:
@@ -46,9 +46,9 @@ class NodeMarkedDown extends Netmails //implements ShouldQueue
|
||||
->addText(sprintf("Your system has been marked **DOWN**, because it hasnt polled **%s** with address %s since **%s** (%d days).\r",$this->ao->zone->domain->name,$this->ao->ftn4d,$this->ao->system->last_seen?->format('Y-m-d') ?: 'Not seen',$this->ao->system->last_seen?->diffInDays($now)))
|
||||
->addText("\r")
|
||||
->addText("You have (waiting for collection):\r")
|
||||
->addText(sprintf('* %s Netmails',number_format($this->ao->netmailWaiting()->count())))
|
||||
->addText(sprintf('* %s Echomails',number_format($this->ao->echomailWaiting()->count())))
|
||||
->addText(sprintf('* %s Files',number_format($this->ao->filesWaiting()->count())))
|
||||
->addText(sprintf("* %s Netmails\r",number_format($this->ao->netmailWaiting()->count())))
|
||||
->addText(sprintf("* %s Echomails\r",number_format($this->ao->echomailWaiting()->count())))
|
||||
->addText(sprintf("* %s Files\r",number_format($this->ao->filesWaiting()->count())))
|
||||
->addText("\r")
|
||||
->addText(sprintf("Your system will automatically be **DE-LISTED** if your system hasnt polled to collected your mail/file(s) by **%s**\r\r",$now->addDays(7)->format('Y-m-d')))
|
||||
->addText("If you think you've received this netmail by mistake or need help, please let me know.\r");
|
||||
|
@@ -47,9 +47,9 @@ class NodeMarkedHold extends Netmails //implements ShouldQueue
|
||||
->addText(sprintf("Your system has been marked **HOLD**, because it hasnt polled **%s** with address %s since **%s** (%d days).\r",$this->ao->zone->domain->name,$this->ao->ftn4d,$this->ao->system->last_seen?->format('Y-m-d') ?: 'Not seen',$this->ao->system->last_seen?->diffInDays($now)))
|
||||
->addText("\r")
|
||||
->addText("You have (waiting for collection):\r")
|
||||
->addText(sprintf('* %s Netmails',number_format($this->ao->netmailWaiting()->count())))
|
||||
->addText(sprintf('* %s Echomails',number_format($this->ao->echomailWaiting()->count())))
|
||||
->addText(sprintf('* %s Files',number_format($this->ao->filesWaiting()->count())))
|
||||
->addText(sprintf("* %s Netmails\r",number_format($this->ao->netmailWaiting()->count())))
|
||||
->addText(sprintf("* %s Echomails\r",number_format($this->ao->echomailWaiting()->count())))
|
||||
->addText(sprintf("* %s Files\r",number_format($this->ao->filesWaiting()->count())))
|
||||
->addText("\r")
|
||||
->addText(sprintf("To clear this status, all you need to do make sure your system polls and collects mail by **%s**\r\r",($this->ao->system->last_seen ?: Carbon::now())->addDays(config('fido.idle.down'))->format('Y-m-d')))
|
||||
->addText("If you think you've received this netmail by mistake or need help, please let me know.\r");
|
||||
|
Reference in New Issue
Block a user