mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 14:04:30 +02:00
Added some more useful variables to the twig label generator
This commit is contained in:
parent
dff1ef04bf
commit
38b5a84c4f
2 changed files with 14 additions and 7 deletions
|
@ -86,8 +86,11 @@ final class LabelHTMLGenerator
|
|||
[
|
||||
'element' => $element,
|
||||
'page' => $page,
|
||||
'last_page' => count($elements),
|
||||
'user' => $current_user,
|
||||
'install_title' => $this->partdb_title,
|
||||
'paper_width' => $options->getWidth(),
|
||||
'paper_height' => $options->getHeight(),
|
||||
]
|
||||
);
|
||||
} catch (Error $exception) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue