Skip to content

Jinja dashboards

20after4 requested to merge jinja-dashboards into main

This supports dashboard widgets as jinja templates in www/templates. The corresponding query in metadata.yaml can be an arbitrary sql string or it can be the name of a "canned query" and either way the query runs with your dashboard filters applied and finally the query results are available from within the template as a list of dicts named {{data}}.

See example in www/templates/subprojects.html which renders a list of links, each pointing to the current dashboard but with the project filter altered to the PHID of the selected sub-project.

Merge request reports