{% macro render_additional_links(additional_links, pk) %} {% if additional_links %} {% for item in additional_links %} {{_(item.label)}} {% endfor %} {% endif %} {% endmacro %} {% macro render_action_links(actions, pk, generalview_name) %} {% for key in actions %} {% set action = actions.get(key) %} {% if action.name | is_item_visible(generalview_name) %} {{_(action.text)}} {% endif %} {% endfor %} {% endmacro %} {% macro render_actions(actions, generalview_name) %} {% if actions %}