diff --git a/templates/workspaces/reports/index.html b/templates/workspaces/reports/index.html
index 563a7838..18198ea5 100644
--- a/templates/workspaces/reports/index.html
+++ b/templates/workspaces/reports/index.html
@@ -2,6 +2,7 @@
{% from "components/alert.html" import Alert %}
{% from "components/icon.html" import Icon %}
+{% from "components/empty_state.html" import EmptyState %}
{% block workspace_content %}
@@ -102,341 +103,327 @@
{% set two_months_ago_index = two_months_ago.strftime('%m/%Y') %}
{% set reports_url = url_for("workspaces.workspace_reports", workspace_id=workspace.id) %}
- Cumulative Budget
+ {% if not monthly_totals['environments'] %}
-
-
-
-
-
Spending scope | -{{ two_months_ago.strftime('%B %Y') }} | -{{ prev_month.strftime('%B %Y') }} | -{{ current_month.strftime('%B %Y') }} | -- + | |||
---|---|---|---|---|---|---|---|
Workspace Total | -{{ workspace_totals.get(two_months_ago_index, 0) | dollars }} | -{{ workspace_totals.get(prev_month_index, 0) | dollars }} | -{{ workspace_totals.get(current_month_index, 0) | dollars }} | -
- |
- |||
- - | -- - | +- - | +|||||
- - {{ Icon('link') }} - - - | + {# max budget line #} +- - | +- - | + {# make this clickable to focus on that month #} + -- - | +- |
Spending scope | +{{ two_months_ago.strftime('%B %Y') }} | +{{ prev_month.strftime('%B %Y') }} | +{{ current_month.strftime('%B %Y') }} | ++ + + + | |||
---|---|---|---|---|---|---|---|
Workspace Total | +{{ workspace_totals.get(two_months_ago_index, 0) | dollars }} | +{{ workspace_totals.get(prev_month_index, 0) | dollars }} | +{{ workspace_totals.get(current_month_index, 0) | dollars }} | +
+ |
+ |||
- | -{{ project_totals.get(two_months_ago_index, 0) | dollars }} | -{{ project_totals.get(prev_month_index, 0) | dollars }} | -{{ project_totals.get(current_month_index, 0) | dollars }} | ++ + | + ++ + | + ++ + | +
- {{ (100 * (project_totals.get(current_month_index, 0) / workspace_totals.get(current_month_index, 1))) | round | int }}%
- |
{{ Icon('link') }} {{ env_name }} | -{{ env_totals.get(two_months_ago_index, 0) | dollars }} | -{{ env_totals.get(prev_month_index, 0) | dollars }} | -{{ env_totals.get(current_month_index, 0) | dollars }} | -- | |||
+ + {{ Icon('link') }} + + + | - -