A summary of votes by topic, including tags

I feel silly asking this, but I honestly can’t figure out where I’d add this part in the code above. Where would it go?