Create partial for duplicated div for audit log and activity history
This commit is contained in:
parent
a48b814263
commit
8700ba37d3
@ -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 %}
|
||||
|
21
templates/fragments/audit_events_log.html
Normal file
21
templates/fragments/audit_events_log.html
Normal 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>
|
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user