Twig extension to render type and priority labels