Badges - models, templates and views.

Ok, I prepared simple badges viewing implementation and templates. Now we need to figure out how to trigger badges granting actions. Any ideas?

Here's screenshot how it looks like: http://i.imgur.com/tosfDl6.png