mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
#19561 update user changelog table
This commit is contained in:
parent
478bb4027f
commit
ecf825d730
@ -78,6 +78,7 @@
|
|||||||
<h2 class="text-center">{% trans "Recent Activity" %}</h2>
|
<h2 class="text-center">{% trans "Recent Activity" %}</h2>
|
||||||
<div class="card-body table-responsive">
|
<div class="card-body table-responsive">
|
||||||
{% render_table changelog_table 'inc/table.html' %}
|
{% render_table changelog_table 'inc/table.html' %}
|
||||||
|
{% include 'inc/paginator.html' with paginator=changelog_table.paginator page=changelog_table.page %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -75,7 +75,7 @@ class UserView(generic.ObjectView):
|
|||||||
template_name = 'users/user.html'
|
template_name = 'users/user.html'
|
||||||
|
|
||||||
def get_extra_context(self, request, instance):
|
def get_extra_context(self, request, instance):
|
||||||
changelog = ObjectChange.objects.restrict(request.user, 'view').filter(user=instance)[:20]
|
changelog = ObjectChange.objects.restrict(request.user, 'view').filter(user=instance)
|
||||||
changelog_table = ObjectChangeTable(changelog)
|
changelog_table = ObjectChangeTable(changelog)
|
||||||
changelog_table.configure(request)
|
changelog_table.configure(request)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user