Add usage stats to organisation page.

This commit is contained in:
Rebecca Law
2020-02-25 17:49:55 +00:00
parent 07e7d98407
commit 4b11d776ee
6 changed files with 44 additions and 14 deletions

View File

@@ -125,8 +125,10 @@ def add_organisation_from_nhs_local_service(service_id):
@main.route("/organisations/<uuid:org_id>", methods=['GET'])
@user_has_permissions()
def organisation_dashboard(org_id):
services = current_organisation.services_and_usage()
return render_template(
'views/organisations/organisation/index.html',
services=services
)