Use Next/Okay conditionally depending on whether there are edit links.

Change-Id: Ib357c9c3b680e6dc907b4cf95972684e627c0dff