[noticket] fix for template when viewing old revisions