Add link (and code) to view original page to templates