Fix broken markup in publish/share template

There was an extra, unmatched ``</div>`` tag that was breaking the layout
in IE8/IE9.

Closes #830