Generate the UI for displaying a diff to the user