{# Copyright (C) 2025 CERN. Flask-MultiProfiler is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {% macro render_report(session_id, report, children) %} {% set code_link %} {%- if report.has_code_report -%} Code {%- endif -%} {% endset %} {% set sql_link %} {%- if report.has_sql_report -%} SQL {%- endif -%} {% endset %} {% set search_link %} {%- if report.has_search_report -%} Search {%- endif -%} {% endset %}
{{ report.context.method }} {{ report.context.url }} ({{ report.context.endpoint }})
Referer: {{ report.context.referrer }} {{ code_link }} {{ sql_link }} {{ search_link }}
{% if children %}
{% for child in children %} {{ render_report(session_id, child) }} {% endfor %}
{% endif %}
{% endmacro%}