Merge pull request #287 from Sommerregen/bugfix/latest-pages

Hide "Latest Pages" if there aren't any pages available
This commit is contained in:
Flavio Copes
2015-11-20 09:35:42 +01:00

View File

@@ -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>