{#- ---------------------------------------------------------------------------- Macro for rendering the breadcrumb menu for currently active view. ----------------------------------------------------------------------------- #} {%- macro render_breadcrumbs(context_item = None) %} {%- set breadcrumbs_menu = vial_current_view.get_breadcrumbs_menu() %} {%- if breadcrumbs_menu %} {%- else %} {%- endif %} {%- endmacro %} {#- ---------------------------------------------------------------------------- Macro for rendering the action menu for currently active view. ----------------------------------------------------------------------------- #} {%- macro render_menu_actions(context_item = None, action_menu = None) %} {%- if not action_menu %} {%- set action_menu = vial_current_view.get_action_menu() %} {%- endif %} {%- if action_menu %} {%- set menu_item_list = action_menu.get_entries(item = context_item) %} {%- if menu_item_list %} {%- endif %} {%- endif %} {%- endmacro %} {#- ---------------------------------------------------------------------------- Macro for rendering the context item action menus. ----------------------------------------------------------------------------- #} {%- macro render_menu_context_actions(context_item, action_menu = None, cssclass = '', kwargs = {}) %} {%- if not action_menu %} {%- set action_menu = vial_current_view.get_context_action_menu() %} {%- endif %} {%- if action_menu %} {%- set menu_item_list = action_menu.get_entries(item = context_item, **kwargs) %} {%- if menu_item_list %} {%- endif %} {%- endif %} {%- endmacro %} {#- ---------------------------------------------------------------------------- Macro for rendering the changelog record widget. ----------------------------------------------------------------------------- #} {%- macro render_label_endpoint(endpoint) -%} {{ get_endpoint_icon(endpoint) }} {{ endpoint }} {%- endmacro -%} {%- macro render_label_action(endpoint) -%} {{ get_endpoint_icon(endpoint) }} {%- endmacro -%} {%- macro render_label_module(endpoint) -%} {{ get_module_icon(endpoint) }} {%- endmacro -%} {%- macro render_changelog_records(items, context_action_menu, idprefix = 'changelog', hide_author = False, hide_item = False) -%} {%- endmacro -%} {%- macro render_popover_help_html(placement = 'top') %} {%- set tmp_uuid4 = get_uuid4() %}
{{ get_icon('help') }}
{%- endmacro %} {%- macro render_help_link(icon = 'reference', text = _('Help'), tooltip_text = _('View full online documentation'), tooltip_placement = 'bottom', url_suffix = '') %} {% if icon %}{{ get_icon(icon) }}{% endif %}{% if text %} {{ text }}{% endif %} {%- endmacro %}