Extend number of audit log entries shown on /todo/

This commit is contained in:
rubenwardy 2022-02-14 01:19:32 +00:00
parent 07db1943fb
commit a70454cf1f
2 changed files with 14 additions and 13 deletions

@ -80,7 +80,7 @@ def view_editor():
audit_log = AuditLogEntry.query \
.filter(AuditLogEntry.package.has()) \
.order_by(db.desc(AuditLogEntry.created_at)) \
.limit(10).all()
.limit(20).all()
return render_template("todo/editor.html", current_tab="editor",
packages=packages, wip_packages=wip_packages, releases=releases, screenshots=screenshots,

@ -157,18 +157,6 @@
{% endif %}
<div class="mt-5"></div>
{% if current_user.rank.atLeast(current_user.rank.MODERATOR) %}
<a class="btn btn-secondary float-right" href="{{ url_for('admin.audit') }}">
{{ _("View All") }}
</a>
{% endif %}
<h2>{{ _("Recent Actions") }}</h2>
{% from "macros/audit_log.html" import render_audit_log %}
{{ render_audit_log(audit_log, current_user) }}
<h2 class="mt-5">{{ _("WIP") }}</h2>
{% if canApproveNew and (packages or wip_packages) %}
@ -197,4 +185,17 @@
</div>
</div>
{% endif %}
<div class="mt-5"></div>
{% if current_user.rank.atLeast(current_user.rank.MODERATOR) %}
<a class="btn btn-secondary float-right" href="{{ url_for('admin.audit') }}">
{{ _("View All") }}
</a>
{% endif %}
<h2>{{ _("Recent Actions") }}</h2>
{% from "macros/audit_log.html" import render_audit_log %}
{{ render_audit_log(audit_log, current_user) }}
{% endblock %}