diff --git a/ckanext/ap_main/templates/admin_panel/panel_links.html b/ckanext/ap_main/templates/admin_panel/panel_links.html index 35acfb8..aea3375 100644 --- a/ckanext/ap_main/templates/admin_panel/panel_links.html +++ b/ckanext/ap_main/templates/admin_panel/panel_links.html @@ -37,5 +37,7 @@ {% endmacro %} {% for button in h.ap_get_toolbar_structure() %} - {{ toolbar_button(button) }} + {% if button.url or button.sibitems %} + {{ toolbar_button(button) }} + {% endif %} {% endfor %}