mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-07 08:02:58 +01:00
Merge pull request #287 from Sommerregen/bugfix/latest-pages
Hide "Latest Pages" if there aren't any pages available
This commit is contained in:
@@ -142,7 +142,7 @@
|
||||
</div>
|
||||
<h1>{{ "PLUGIN_ADMIN.LATEST_PAGE_UPDATES"|tu }}</h1>
|
||||
<table>
|
||||
{% for latest in admin.latestPages %}
|
||||
{% for latest in admin.latestPages if admin.latestPages %}
|
||||
<tr><td class="double page-title"><a href="{{ base_url }}/pages/{{ latest.route|trim('/') }}"><i class="fa fa-fw fa-file-o"></i> {{ latest.title }}</a></td><td class="double page-route">{{ latest.route }}</td><td><b class="last-modified">{{ latest.modified|nicetime }}</b></td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user