Improving discovery of the badge title feature

thanks @Mittineague!
I posted the wrong file link, now i correct it. Is actually badge_grant.rb not the spec file.

What i try want to do is to “update” the attributes that the badge has in notification-item.js
That badge now has: id, name, slug and username.
I want to pass to that badge var also allow_title attribute. Which i now it exist in the ruby part.
Once i have a boolean value for each badge that tell me if allow_title or not, is easy to add title link.

I’m not sure i understand your idea with the different css classes (do you want to give to each <span> the name of the badge as class name?) but with your or mine approach, i still need to know at one point, if the badge can be use as title or not.
And that’s something that has to come from the backend, as attributes, as far as i know.