Move pagination macro out of audit log fragment
This commit is contained in:
parent
8e8adb8c6a
commit
16febc2a77
@ -2,5 +2,8 @@
|
|||||||
{% from "components/pagination.html" import Pagination %}
|
{% from "components/pagination.html" import Pagination %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% include "fragments/audit_events_log.html" %}
|
<div v-cloak>
|
||||||
|
{% include "fragments/audit_events_log.html" %}
|
||||||
|
{{ Pagination(audit_events, 'atst.activity_history')}}
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,21 +1,17 @@
|
|||||||
{% from "components/pagination.html" import Pagination %}
|
{% from "components/pagination.html" import Pagination %}
|
||||||
|
|
||||||
<div v-cloak>
|
<section class="block-list">
|
||||||
<section class="block-list">
|
<header class="block-list__header">
|
||||||
<header class="block-list__header">
|
<h1 class="block-list__title">{{ "audit_log.header_title" | translate }}</h1>
|
||||||
<h1 class="block-list__title">{{ "audit_log.header_title" | translate }}</h1>
|
</header>
|
||||||
</header>
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for event in audit_events %}
|
{% for event in audit_events %}
|
||||||
<li class="block-list__item">
|
<li class="block-list__item">
|
||||||
{% autoescape false %}
|
{% autoescape false %}
|
||||||
{{ event | renderAuditEvent }}
|
{{ event | renderAuditEvent }}
|
||||||
{% endautoescape %}
|
{% endautoescape %}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{ Pagination(audit_events, 'workspaces.workspace_activity', workspace_id=workspace_id) }}
|
|
||||||
</div>
|
|
||||||
|
@ -2,5 +2,8 @@
|
|||||||
{% from "components/pagination.html" import Pagination %}
|
{% from "components/pagination.html" import Pagination %}
|
||||||
|
|
||||||
{% block workspace_content %}
|
{% block workspace_content %}
|
||||||
{% include "fragments/audit_events_log.html" %}
|
<div v-cloak>
|
||||||
|
{% include "fragments/audit_events_log.html" %}
|
||||||
|
{{ Pagination(audit_events, 'workspaces.workspace_activity', workspace_id=workspace_id) }}
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user