Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • ddd ddd
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Custom issue tracker
    • Custom issue tracker
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • repos
  • relengreleng
  • dddddd
  • Merge requests
  • !4

Jinja dashboards

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged 20after4 requested to merge jinja-dashboards into main Oct 06, 2021
  • Overview 0
  • Commits 6
  • Pipelines 0
  • Changes 27

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.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: jinja-dashboards