Move pagination macro out of audit log fragment

This commit is contained in:
leigh-mil 2019-01-09 10:53:07 -05:00
parent 8e8adb8c6a
commit 16febc2a77
3 changed files with 22 additions and 20 deletions

View File

@ -2,5 +2,8 @@
{% from "components/pagination.html" import Pagination %}
{% 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 %}

View File

@ -1,21 +1,17 @@
{% from "components/pagination.html" import Pagination %}
<div v-cloak>
<section class="block-list">
<header class="block-list__header">
<h1 class="block-list__title">{{ "audit_log.header_title" | translate }}</h1>
</header>
<section class="block-list">
<header class="block-list__header">
<h1 class="block-list__title">{{ "audit_log.header_title" | translate }}</h1>
</header>
<ul>
{% for event in audit_events %}
<li class="block-list__item">
{% autoescape false %}
{{ event | renderAuditEvent }}
{% endautoescape %}
</li>
{% endfor %}
</ul>
</section>
{{ Pagination(audit_events, 'workspaces.workspace_activity', workspace_id=workspace_id) }}
</div>
<ul>
{% for event in audit_events %}
<li class="block-list__item">
{% autoescape false %}
{{ event | renderAuditEvent }}
{% endautoescape %}
</li>
{% endfor %}
</ul>
</section>

View File

@ -2,5 +2,8 @@
{% from "components/pagination.html" import Pagination %}
{% 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 %}