You can actually add a flag link as a field to the view, which is what I did. Let's remove this template, its not needed.