Move the pull template into a partial.

This way, when we change things, it'll be super easy and we'll
only have to do it in one place. I also changed the template
slightly so we only pass the partial view the single element to
render instead of the entire array of elements.