mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Refactor summaries into model
This lets us encapsulate some of the logic that’s currently cluttering up the view/template layer.
This commit is contained in:
@@ -296,10 +296,6 @@ def get_dashboard_partials(service_id):
|
||||
),
|
||||
'inbox': render_template(
|
||||
'views/dashboard/_inbox.html',
|
||||
inbound_sms_summary=(
|
||||
service_api_client.get_inbound_sms_summary(service_id)
|
||||
if current_service.has_permission('inbound_sms') else None
|
||||
),
|
||||
),
|
||||
'totals': render_template(
|
||||
'views/dashboard/_totals.html',
|
||||
|
||||
Reference in New Issue
Block a user