Skip to content

Commit

Permalink
Update template
Browse files Browse the repository at this point in the history
  • Loading branch information
sjelfull committed Dec 3, 2018
1 parent 00178c7 commit cc1f53a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/templates/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@

{% set iconUrl = view.getAssetManager().getPublishedUrl('@superbig/audit/assetbundles/indexcpsection/dist', true) ~ '/img/Index-icon.svg' %}

{% set extraPageHeaderHtml %}
<div class="buttons">
<a href="{{ pluginCpUrl }}" class="btn submit add icon">{{ "Click Me!"|t('audit') }}</a>
</div>
{% endset %}
{% block actionButton %}
{% if currentUser.can('audit-clear-logs') %}
<div class="buttons">
<a href="{{ url('audit/prune-logs') }}" class="btn submit icon">{{ "Prune old records"|t('audit') }}</a>
</div>
{% endif %}
{% endblock %}

{% set content %}
{% block content %}
{% if logs %}
<table class="data fullwidth">
<thead>
Expand Down Expand Up @@ -69,4 +71,4 @@
{% else %}
<p>No log entries.</p>
{% endif %}
{% endset %}
{% endblock %}

0 comments on commit cc1f53a

Please sign in to comment.