{#- ---------------------------------------------------------------------------- Macro for rendering the breadcrumb menu for currently active view. ----------------------------------------------------------------------------- #} {%- macro render_breadcrumbs(context_item = None) %} {%- set breadcrumbs_menu = hawat_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 = hawat_current_view.get_action_menu() %} {%- endif %} {%- if action_menu %} {%- set menu_item_list = action_menu.get_menu(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 = '') %} {%- if not action_menu %} {%- set action_menu = hawat_current_view.get_context_action_menu() %} {%- endif %} {%- if action_menu %} {%- set menu_item_list = action_menu.get_menu(context_item) %} {%- 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) -%}
{{ item.diff }}