diff --git a/public/theme/skeleton/partials/_aside.twig b/public/theme/skeleton/partials/_aside.twig index 623b58af3..631cd28c9 100644 --- a/public/theme/skeleton/partials/_aside.twig +++ b/public/theme/skeleton/partials/_aside.twig @@ -55,14 +55,16 @@ {% setcontent records = ct.slug ~ "/latest/3" %}
{{ __('contenttypes.generic.recent', {'%contenttypes%': ct.name}) }}
- -

{{ __('contenttypes.generic.overview',{'%contenttypes%': ct.name}) }} »

+ {% if records|length %} + +

{{ __('contenttypes.generic.overview',{'%contenttypes%': ct.name}) }} »

+ {% else %} +

{{ __('contenttypes.generic.no-recent', {'%contenttype%': ct.slug}) }}

+ {% endif %} {% endfor %} diff --git a/templates/content/_buttons.html.twig b/templates/content/_buttons.html.twig index 314e887fe..c43d7ec9a 100644 --- a/templates/content/_buttons.html.twig +++ b/templates/content/_buttons.html.twig @@ -33,7 +33,7 @@
- {% if record.status == "published" and record.definition.viewless != true %} + {% if record.status == "published" and record|link(true) %} {{ macro.icon('fa-sign-out-alt') }} {{ __('action.view_saved') }} {% endif %}