Implement coloured div corresponding to badge rank (recent_badges widget)