Skip to content

Commit ab9852c

Browse files
awolfdenAdam Wolfman
andauthored
Add log streams to audit logs app (#56)
Co-authored-by: Adam Wolfman <[email protected]>
1 parent 6ca28fd commit ab9852c

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

python-django-audit-logs-example/audit_logs/templates/audit_logs/send_events.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</div>
2323
</a>
2424
<div class="flex sidebar-button selected">
25-
<div>{% icon "settings" %}</div>
25+
<div>{% icon "edit" %}</div>
2626
<div>
2727
<p>Audit Logs</p>
2828
</div>
@@ -65,21 +65,27 @@
6565
<div class="flex flex-start">
6666
<div class="flex-column flex-start">
6767
<div data-tab-target="#send-events" name='#send-events' class="flex space-evenly width-11vw content-button tab">
68-
<div>{% icon "settings" %}</div>
68+
<div>{% icon "send" %}</div>
6969
<div>
7070
<a href="#send-events" class="remove-style"><button class="remove-style">Send Events</button></a>
7171
</div>
7272
</div>
7373
<div data-tab-target="#export-events" name='#export-events' class="flex space-evenly width-11vw content-button tab">
74-
<div>{% icon "settings" %}</div>
74+
<div>{% icon "download" %}</div>
7575
<div>
7676
<a href="#export-events" class="remove-style"><button class="remove-style">Export Events</button></a>
7777
</div>
7878
</div>
7979
<div class="flex space-evenly width-11vw content-button tab">
80-
<div>{% icon "settings" %}</div>
80+
<div>{% icon "eye" %}</div>
8181
<div>
82-
<a href="/events" class="remove-style"><button class="remove-style">Event Stream</button></a>
82+
<a href="/events?intent=audit_logs" class="remove-style"><button class="remove-style">View Events</button></a>
83+
</div>
84+
</div>
85+
<div class="flex space-evenly width-11vw content-button tab">
86+
<div>{% icon "share_2" %}</div>
87+
<div>
88+
<a href="/events?intent=log_streams" class="remove-style"><button class="remove-style">Configure Log Streams</button></a>
8389
</div>
8490
</div>
8591
</div>

python-django-audit-logs-example/audit_logs/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def get_events(request):
171171
@csrf_exempt
172172
def events(request):
173173
link = workos.client.portal.generate_link(
174-
organization=request.session["organization_id"], intent="audit_logs"
174+
organization=request.session["organization_id"], intent=request.GET['intent']
175175
)
176176
return redirect(link["link"])
177177

0 commit comments

Comments
 (0)