From de83dd0d1b7254d07c96f3b64e26bc36008ee2f4 Mon Sep 17 00:00:00 2001 From: Unix Date: Fri, 12 Mar 2021 10:01:16 +0100 Subject: [PATCH] frontpage: show a message when there are no public record. --- .../templates/invenio_theme_tugraz/index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html index 1f4acd3..90522df 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html @@ -43,6 +43,12 @@

{{_('Recent uploads')}}

+ {% if not records %} +
+

There are no public records to show.

+
+ {% endif %} + {%- for r in records %} {%- set creation_date = r._created|from_isodatetime -%} {%- set record_url = url_for('invenio_app_rdm_records.record_detail', pid_value=r.id) %} @@ -116,9 +122,11 @@ --> {%- endfor %} + {% if records %} + {%- endif %}