Parcourir la source

Restored the option to hide the paginator on panel tables

Jeremy Stretch il y a 8 ans
Parent
commit
6e69c9e375
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      netbox/templates/panel_table.html

+ 1 - 1
netbox/templates/panel_table.html

@@ -13,7 +13,7 @@
     {% endif %}
 </div>
 
-{% if table.rows %}
+{% if table.rows and not hide_paginator %}
     {% with paginator=table.paginator page=table.page %}
         {% include 'inc/paginator.html' %}
     {% endwith %}