mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 20:04:34 +02:00
Moved quick link logic into an macro
This commit is contained in:
parent
74a563a75a
commit
a01ed3acf6
5 changed files with 25 additions and 19 deletions
|
@ -9,7 +9,8 @@
|
|||
{% embed "Parts/lists/_info_card.html.twig" with {'header_label': 'manufacturer.label'} %}
|
||||
{% block quick_links %}
|
||||
<div class="mb-2">
|
||||
{% include 'QuickLinks/_company.html.twig' %}
|
||||
{% import "components/quick_links.macro.html.twig" as quick_links %}
|
||||
{{ quick_links.company(entity) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
{% embed "Parts/lists/_info_card.html.twig" with {'header_label': 'supplier.label'} %}
|
||||
{% block quick_links %}
|
||||
<div class="mb-2">
|
||||
{% include 'QuickLinks/_company.html.twig' %}
|
||||
{% import "components/quick_links.macro.html.twig" as quick_links %}
|
||||
{{ quick_links.company(entity) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue