diff --git a/app/main/views/dashboard.py b/app/main/views/dashboard.py index 30579c40b..00b9af1db 100644 --- a/app/main/views/dashboard.py +++ b/app/main/views/dashboard.py @@ -35,7 +35,8 @@ def temp_service_history(service_id): data = service_api_client.get_service_history(service_id)['data'] return render_template('views/temp-history.html', services=data['service_history'], - api_keys=data['api_key_history']) + api_keys=data['api_key_history'], + events=data['events']) @main.route("/services//dashboard") diff --git a/app/templates/views/temp-history.html b/app/templates/views/temp-history.html index 82eb1a92f..f8a4ba7f6 100644 --- a/app/templates/views/temp-history.html +++ b/app/templates/views/temp-history.html @@ -79,4 +79,29 @@ History – GOV.UK Notify {% endcall %} + + {% call(item, row_number) list_table( + events, + caption="Events", + field_headings=['ID','Event type','User ID','IP Address','Event data'] + )%} + {% call field() %} + {{item.id}} + {% endcall %} + {% call field() %} + {{item.event_type}} + {% endcall %} + {% call field() %} + {{item.data.user_id}} + {% endcall %} + {% call field() %} + {{item.data.ip_address}} + {% endcall %} + {% call field() %} + {{item.data}} + {% endcall %} + {% endcall %} + {% endblock %}