Removed nav_slot global, now that there is a dedicated setting for slot. This fixes a failing test.
Removed unused current_level.
If label is defined, it should be shown even for tree display.
Added show_context_menu for the list display. Formatted conditionals in template with line breaks.