Release 1.6.1 (#1282)
This commit is contained in:
@@ -69,6 +69,7 @@ class Extensions extends AbstractExtension
|
||||
new TwigFilter('currency', [$this, 'currency']),
|
||||
new TwigFilter('country', [$this, 'country']),
|
||||
new TwigFilter('language', [$this, 'language']),
|
||||
new TwigFilter('amount', [$this, 'amount']),
|
||||
new TwigFilter('docu_link', [$this, 'documentationLink']),
|
||||
];
|
||||
}
|
||||
@@ -128,6 +129,15 @@ class Extensions extends AbstractExtension
|
||||
return $this->getNumberFormatter()->format(number_format($duration / 3600, 2));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string|float $amount
|
||||
* @return bool|false|string
|
||||
*/
|
||||
public function amount($amount)
|
||||
{
|
||||
return $this->getNumberFormatter()->format($amount);
|
||||
}
|
||||
|
||||
private function getSecondsForDuration($duration): int
|
||||
{
|
||||
if (null === $duration) {
|
||||
|
||||
@@ -42,7 +42,8 @@ final class IconExtension extends AbstractExtension
|
||||
'filter' => 'fas fa-filter',
|
||||
'help' => 'far fa-question-circle',
|
||||
'home' => 'fas fa-home',
|
||||
'invoice' => 'fas fa-file-invoice',
|
||||
'invoice' => 'fas fa-file-invoice-dollar',
|
||||
'invoice-template' => 'fas fa-file-signature',
|
||||
'list' => 'fas fa-list',
|
||||
'logout' => 'fas fa-sign-out-alt',
|
||||
'mail' => 'fas fa-envelope-open',
|
||||
|
||||
Reference in New Issue
Block a user