template conditional around div instead of ul