{% comment %} "Cost Summary" home dashboard panel — current monthly burn (per currency), annualized run rate, and top-spending vendors. Powered by the cost.py helpers; data callables live in homepage.py. Context variables: - cost_summary.burn_by_currency: dict[currency, Decimal] — monthly burn rate per currency - cost_summary.annualized_by_currency: dict[currency, Decimal] — burn × 12, pre-computed - cost_summary.top_vendors: list of (provider, monthly, currency) — top N vendors {% endcomment %} {% if perms.nautobot_contract_models.view_contract %} {% if cost_summary.burn_by_currency %}
Monthly burn {% for currency, total in cost_summary.burn_by_currency.items %} {% endfor %}
{{ currency }} {{ total|floatformat:2 }} /mo
Annualized {% for currency, total in cost_summary.annualized_by_currency.items %} {% endfor %}
{{ currency }} {{ total|floatformat:2 }} /yr
{% else %}
No active contracts.
{% endif %} {% if cost_summary.top_vendors %}
Top vendors by spend {% for provider, total, currency in cost_summary.top_vendors %} {% endfor %}
{{ provider.name }} {{ total|floatformat:2 }} {{ currency }}/mo
{% endif %} {% else %}
No permission
{% endif %}