Use party.slug, not party.name in class attributes.
Extract helper for getting a party slug from a promise.