Merge pull request #262 from dod-ccpo/ui/cumulative-budget-chart

Ui/cumulative budget chart
This commit is contained in:
andrewdds
2018-09-12 08:51:02 -04:00
committed by GitHub
14 changed files with 450 additions and 17 deletions

View File

@@ -196,3 +196,11 @@ class Reports:
"projects": project_totals,
"workspace": workspace_totals,
}
@classmethod
def cumulative_budget(cls, alternate):
return {
"months": CUMULATIVE_BUDGET_BELUGA
if alternate
else CUMULATIVE_BUDGET_AARDVARK
}

View File

@@ -87,6 +87,7 @@ def workspace_reports(workspace_id):
return render_template(
"workspaces/reports/index.html",
cumulative_budget=Reports.cumulative_budget(alternate_reports),
workspace_totals=Reports.workspace_totals(alternate_reports),
monthly_totals=Reports.monthly_totals(alternate_reports),
current_month=current_month,