From cb0625b1a072cc9496d2d682d0062ad2739b7804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=A4fer?= <felix@thegcat.net> Date: Fri, 13 Sep 2019 20:10:29 +0200 Subject: [PATCH] Don't show the public registrations table if there are no public registrations yet --- .../templates/pretix_public_registrations/front_page.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pretix_public_registrations/templates/pretix_public_registrations/front_page.html b/pretix_public_registrations/templates/pretix_public_registrations/front_page.html index 3a029ec..bcfdb64 100644 --- a/pretix_public_registrations/templates/pretix_public_registrations/front_page.html +++ b/pretix_public_registrations/templates/pretix_public_registrations/front_page.html @@ -1,6 +1,13 @@ {% load i18n %} <section class="front-page"> <h3>{% trans "Public registrations" %}</h3> + {% if not public_registrations %} + <div> + <div class="col-md-12"> + <p>{% trans "No public registrations yet." %}</p> + </div> + </div> + {% else %} <div class="table-responsive"> <table class="table table-striped sortable"> <thead> @@ -23,4 +30,5 @@ </tbody> </table> </div> + {% endif %} </section> -- GitLab