diff --git a/apps/participation/templates/participation/tournament_detail.html b/apps/participation/templates/participation/tournament_detail.html index 5c635ad..33bf9e6 100644 --- a/apps/participation/templates/participation/tournament_detail.html +++ b/apps/participation/templates/participation/tournament_detail.html @@ -63,10 +63,12 @@
-

{% trans "Pools" %}

-
- {% render_table pools %} -
+ {% if pools.data %} +

{% trans "Pools" %}

+
+ {% render_table pools %} +
+ {% endif %} {% if user.registration.is_admin %} @@ -87,20 +89,24 @@ - {% trans "Add pool" as modal_title %} - {% trans "Add" as modal_button %} - {% url "participation:pool_create" as modal_action %} - {% include "base_modal.html" with modal_id="addPool" %} + {% if user.registration.is_admin %} + {% trans "Add pool" as modal_title %} + {% trans "Add" as modal_button %} + {% url "participation:pool_create" as modal_action %} + {% include "base_modal.html" with modal_id="addPool" %} + {% endif %} {% endblock %} {% block extrajavascript %} {% endblock %}