Create partial for duplicated div for audit log and activity history

This commit is contained in:
leigh-mil 2019-01-09 09:45:22 -05:00
parent a48b814263
commit 8700ba37d3
3 changed files with 23 additions and 40 deletions

View File

@ -2,24 +2,5 @@
{% from "components/pagination.html" import Pagination %}
{% block content %}
<div v-cloak>
<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, 'atst.activity_history') }}
</div>
{% include "fragments/audit_events_log.html" %}
{% endblock %}

View File

@ -0,0 +1,21 @@
{% 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>
<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>

View File

@ -2,24 +2,5 @@
{% from "components/pagination.html" import Pagination %}
{% block workspace_content %}
<div v-cloak>
<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>
{% include "fragments/audit_events_log.html" %}
{% endblock %}