Add active css for upvote/downvote in template

This is probably not an optimal solution because it requires two
different for loops in the template.