Missing cur|prev link in board history for summary

Also removed some duplicated code in diff-post/diff-header

Bug: 64382
Change-Id: Idaadd1071c7c0efb292f1291a616d12d512479fc
Merge "Missing cur|prev link in board history for summary"